Double quote conversion problem with embedded JSP (HTML) code in JS-event not responding

Source: Internet
Author: User
Tags button type

Below is a section of the code that encountered the problem today, select wrote the onchange event, in the absence of escape, F12 parsing code is chaotic, double quotation marks and the content of the inconsistency between the writing, there will be a space, after a period of groping, Found in the wrong place with the escape can be (mainly in the front of the quotation marks), the following is a good code, can be referenced.

"<center><select id= ' hylb1mod1 ' name= ' hylb1 ' class= ' selectpicker show-tick ' onchange=\ ' CHANGEHYLB1 ( This.value, ' #hylb2Mod1 ', ' #hylb3Mod1 '); \ "></select>"
+ ' <select id= "hylb2mod1" name= "hylb2" class= "Selectpicker show-tick" onchange= "gethylb (\ ' #hylb3Mod1 \ ', This.value ,\‘\‘);" ></select> '
+ ' <select id= "hylb3mod1" name= "hylb3" class= "Selectpicker Show-tick" ></select> "
+ ' <span class= "editable-clear-x" ></span><div class= "editable-buttons" ><button type= "button" Id= "UpdateData" style= "HEIGHT:34PX; class=" btn btn-primary btn-sm editable-submit "><i class=" Glyphicon Glyphicon-ok "></i></button><button type=" button "id=" Closedialog "style=" HEIGHT:34PX; " ‘
+ ' class= ' btn btn-default btn-sm editable-cancel "><i class=" Glyphicon glyphicon-remove "></i></ Button></div></center> '

Double quote conversion problem with embedded JSP (HTML) code in JS-event not responding

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.