Jquery dialog submit validation

Posted by Gaur1982 under jQuery on 6/26/2012 | Points: 10 | Views : 2339 | Status : [Member] | Replies : 1
I need someone to put me through how I can use jquery dialog to ask "Confirm" or "Cancel" validations before submit. I get Microsoft JScript runtime error: Object doesn't support property or method 'dialog' for this on IE9:

<script type="text/javascript">
$(document).ready(function () {

$("#savechanges").click(function () {

$("#dialog").dialog({
modal: true,
autoOpen: false,
buttons: {
"Confirm": function () {
$("#myformid").submit();
},
"Cancel": function () {
$(this).dialog("close");
}
}
});
return false;
});
});
</script>


<div id="dialog"></div>


<p>
<input type="submit" id="savechanges" value="Save changes" />
</p>


Gaurav Agrawal
http://www.planetofcoders.com/



Responses

Posted by: Jayakumars on: 9/30/2012 [Member] [MVP] Bronze | Points: 25

Up
0
Down
hi

check your JQuery Lib file may be previous version and then donwload for support IE.

Mark as Answer if its helpful to you

Gaur1982, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response