1 After clicking on a header line below the. Moren list, add class called ' Dqon ' to the parent class of the current (this) sibling, and remove ' Dqon ' from the click;Click Current options to display the current content jquery
1.jquery dialog why not submit form form
$ ("#dialog"). Dialog ({autoopen:false,HEIGHT:500,width:800,Modal:true,Buttons: {OK: function () {
$ ("#formId"). Submit ();
............................
After a night of tossing, the form data is not submitted.
Originally
It should be like this:
The form form is written in dialog and can be submitted successfully.
2.$ ("#Form"). Ajaxsubmit (options) is not a
Dom:123456 - - + - + A at - - - - - the -Jquery:1234567 - + - + A at - - - - - in - to + - the * $Panax Notoginseng - the + A the - $DOM manipulation and jquery implementation options move operations
DOM:
jquery:
The above is a small set to introduce the DOM operation and jquery implementation options for mobile code sharing all the content, I hope to help!
1. Get the text selected by select:$ ("#cusChildTypeId"). Find ("option:selected"). Text ();$ ("#cusChildTypeId option:selected"). Text ()2. Get the value selected by select:$ ("#ddlRegType"). Val ();3. Get the selected index for select:$ ("#ddlRegType"). Get (0). SelectedIndex;4. Get the number of select items$ ("#cusChildTypeId"). Get (0). options.length5. Set the index selected by select:$ ("#cusChildTypeId"). Get (0). Selectedindex=index;//index as index value6. Set the value selected by sel
Http://www.tangshuang.net/2271.htmlIn the previous article, "Server-side PHP solves the jquery Ajax cross-domain request for RESTful API issues and practices," I briefly describe how to solve the cross-domain request problem of jquery Ajax through the server side, but in this process, we will find that in many post,put, Delete and other requests, there will be an option
Native JS and jquery write Web page Options Carter effect contrast
In general, the idea is relatively simple, is to get the node, and then the node for the corresponding processing, the following is the complete page code:
Native JS: ?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26-27--28 29---30 31--32 33 34 35 36 37 38-39 40 41 42 45 46 47 48 49 50 51 52 53 54 55 56 57
1. Get the text selected by select:$ ("#cusChildTypeId"). Find ("option:selected"). Text ();$ ("#cusChildTypeId option:selected"). Text ()2. Get the value selected by select:$ ("#ddlRegType"). Val ();3. Get the selected index for select:$ ("#ddlRegType"). Get (0). SelectedIndex;4. Get the number of select items$ ("#cusChildTypeId"). Get (0). options.length5. Set the index selected by select:$ ("#cusChildTypeId"). Get (0). Selectedindex=index;//index as index value6. Set the value selected by sel
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.