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