Monday, April 20, 2020

How to run javascript inside a JSP scriplet


By writing your js code within <script></script> tag inside out.println() has shown below:

<%
    if( a > 9)
   {

         out.println("<script>document.getElementById('rd"+(a+1)+"').disabled=true;</script>");

   }

%>







No comments:

Post a Comment

Machine Learning certification course

A certification course in ML by Code Basics