|
|
|
สอบถามเรื่องปัญหา bootbox.js ติดปัญหาตรง return สู่ค่าฟอร์ม |
|
|
|
|
|
|
|
Code (PHP)
<iframe name="iframe"></iframe>
<form action="update.php" method="post" target="iframe">
<input type="text" id="txt" name="txt" />
<button type="button" id="btn">Send</button>
</form>
<script>
$(document).ready(function(e) {
$('#btn').click(function(e) {
bootbox.confirm("Are you sure?", function(result) {
if(result==true){
$('form').submit();
}
});
});
});
function result(){
bootbox.alert('okay');
}
</script>
|
|
|
|
|
Date :
2013-08-07 13:43:35 |
By :
Krungsri |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2013-08-07 14:08:38 |
By :
Krungsri |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date :
2013-08-07 14:40:46 |
By :
mr.win |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ได้ครับ #FormID ตามปกติ
|
|
|
|
|
Date :
2013-08-07 14:55:10 |
By :
Krungsri |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|