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

Derivatives stock list at NSE

Complete FNO stock list at NSE. ABB India Ltd ACC Ltd APL Apollo Tubes Ltd AU Small Finance Bank Ltd Aarti Industries Ltd Abbott India Ltd A...