Asp.net mvc js Verification:
Jquery. Validate. js
<SCRIPT type = "text/JavaScript"> $ (function () {$ ("form "). validate ({errorclass: "field-Validation-error", rules: {"pledge. supportername ": {required: True, maxlength: 50}," pledge. supporteremail ": {required: True, email: true}," pledge. amount ": {required: True, Min: 10 }}, messages: {" pledge. amount ": {min:" Come on, you can give at least $10.00! "}}})}); </SCRIPT>
<% -- $ ("form [Action $ = 'getquote']"). submit (function () {$. post ($ (this ). ATTR ("action"), $ (this ). serialize (), function (response) {$ ("# results" response .html (response) ;}); return false ;}); $ ("form [Action $ = 'getquote']"). submit (function () {$. getjson ($ (this ). ATTR ("action"), $ (this ). serialize (), function (stockdata) {$ ("# openingprice" ).html (stockdata. openingprice); $ ("# closingprice" ).html (stockdata. closingprice); $ ("# stockrating" pai.html (stockdata. rating) ;}); return false ;}); -- %> <%: Ajax. actionlink ("display time", "showmessage", new {username = "XXX"}, new ajaxoptions {confirm = "OK", httpmethod = "Post ", updatetargetid = "divmsg", loadingelementid = "dvloading", onsuccess = "fun_suc", insertionmode = insertionmode. insertafter, onbegin = "fun_beg"}) %>