Saturday 15 June 2013

javascript - jQuery is not working in JSP -


I am trying to write a code that receives value from the database and slidetoggle ()

This database is a .html file without recovery, which works perfectly:

  & lt; Html & gt; & Lt; Top & gt; & Lt; Script type = "text / javascript" src = "c: \ user \ captive desktop \ jquery-1.9.1.min.js" & gt; & Lt; / Script & gt; & Lt; / Head & gt; & Lt; Body onload = "handleChange ();" & Gt; & Lt; Label & gt; & Lt; Input type = 'checkbox' onchange = 'handleChange ();' & Gt; Check box & lt; / Label & gt; & Lt; Script & gt; Change the Function Handle () {$ ('. Slide Togglebox'). Slide Toggle (); } & Lt; / Script & gt; & Lt; Div class = "slideTogglebox" & gt; & Lt; Ul & gt; & Lt; Li & gt; & Lt; Input type = "checkbox" & gt; Judge 1 & lt; / Li & gt; & Lt; Li & gt; & Lt; Input type = "checkbox" & gt; Judge 2 & lt; / Li & gt; & Lt; / Ul & gt; & Lt; / Div & gt; & Lt; / Body & gt; & Lt; / Html & gt;   

Then I wrote a .jsp file above the jQuery with database recovery, but in output it is showing only the retrieved values, but slidetoggle () The function is not working

No comments:

Post a Comment