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>");
}
%>
Source: https://www.geeksforgeeks.org/python-script-to-show-laptop-battery-percentage/ # python script showing battery details import psut...
No comments:
Post a Comment