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>");
}
%>
from flask import Flask app = Flask(__name__) #In Flask, URL rules can be added using either the @app.route() decorator or the app.add_url_...
No comments:
Post a Comment