The Tree drop-down box is a drop-down box with the following tree-shaped structure. It can be used as a form field and can be submitted to a remote server.
In this tutorial, we are going to create a registration form with the name, address, and City fields. The City field is a tree drop-down box field in which the user can drop down the tree panel and select a specific town. JQuery easyui latest trial Down
jquery's event bindings have replaced the original bind with on, and then share the use of bind and the input Textare event for everyone. At present more than 1.7, jquery's event binding has been replaced with on the original bind, next for you to introduce the use of bind and input Textare event, interested friends can refer to the next(1) JQuery binding EventCurrently more than 1.7, jquery's event bindings have been replaced with the original bind;D
', function (e) {//click submit after//Prevent form submission E.preventdefault (); Get the form instance var $form = $ (e.target); Get the Bootstrapvalidator instance var bv = $form. data (' bootstrapvalidator '); Use the Ajax to submit form data submitted to the form tag in the Action,result custom $.post ($form. attr (' action '), $form. serialize (), functi On (result) {//do something ...}); });});:Abnormal:uncaught rangeerror:maximum Call stack size ExceededeNo
Jquery.get (URL, [data], [Callback (data, Textstatus, XMLHttpRequest)], [datatype])
Returns:xmlhttprequest
URL string that contains the URL of the request being sent.
The data map or string is sent to the server with the request.
Callback (data, Textstatus, XMLHttpRequest) If the request is successfully executed.
Datatypethe type of data is expected from the server.
This is an abbreviated AJAX feature, which is equivalent to:
$.ajax ({Url:url,Data:data,Success:success,Datatype:datatype});
The first step, of course, is the same as using other jquery plug-ins, the introduction of plug-in file Vanadium.js;
The second step is to add the corresponding validation hooks to your form based on the validation method you want to use for your form. For example, you want to make the following form mandatory:
The code is as follows
Copy Code
Then, add the class= ": Required" >:
Others, like: Required verificat
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.