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

Class X IT notes: Part A, Unit 1, Session 1.

 IT notes class 10 Unit 1: COMMUNICATION SKILLS Session 1: METHODS & TYPES OF COMMUNICATION Q1. What is communication? Communication is ...