を使用してalertify - version 0.3.11
、ユーザー入力の詳細を取得し、プロンプト ダイアログで表示することができます。しかし、私には複数の値があります。ユーザー入力、ドロップダウン値、日付選択など
var totalResources = jQuery('#grid').jqGrid('getGridParam', 'selarrrow');
//set custom button title for Form Submit
alertify.set({ labels: {
ok : "Submit Data",
cancel : "Cancel"
} });
//fetch user input comment
alertify.prompt("Please enter note/remarks for this Form :<br/>Total Resource(s): <strong>"+totalResources.length+"</strong>", function (e,value) {
if (e) {
alertify.success("Data has been submitted");
//encodes special characters remarks
var sow = encodeURIComponent(value);
$.post(SITE_URL+"somecontroller/someaction",$("#frm_submit").serialize()+ "&resource_ids="+resource_ids+"&sow="+sow, function( data ) {
});
}else{
alertify.error("Your Data is not submitted");
}
});
下の画像に示すように
alertify を使用して、ユーザーが事前取得された詳細を表示し、詳細を入力して送信できるモーダルフォームを作成するにはどうすればよいですか?