Hello Yongzhi,

in the example, the template contains this:

   $def with (form)

   <form name="main" method="post">
   $if not form.valid: <p class="error">Try again, AmeriCAN:</p>
   $:form.render()
   *<input type="submit" />*    </form> # I put the button in bold

Have you tried to give this input an id ? ( for example <input id="myBtn" type="submit" /> )

Regards,

Christophe.

Le 08/04/2015 00:20, yongzhi.c...@gmail.com a écrit :
Hello all,

We can see a "Submit Query" button if we follow the online instruction (http://webpy.org/form). It is NOT defined by HTML such as

|
<buttonid="myBtn">Submit Query</button>
|

therefore I don't know its id. In my code, I may need the id so that I could use javascript to disable it when there is such a need.

|
document.getElementById("myBtn").disabled =true;
|

For me, this button's property is hidden in the form. How can we handle it? Thanks a lot.

Best Regards,
-Yongzhi

--
You received this message because you are subscribed to the Google Groups "web.py" group. To unsubscribe from this group and stop receiving emails from it, send an email to webpy+unsubscr...@googlegroups.com <mailto:webpy+unsubscr...@googlegroups.com>. To post to this group, send email to webpy@googlegroups.com <mailto:webpy@googlegroups.com>.
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to webpy+unsubscr...@googlegroups.com.
To post to this group, send email to webpy@googlegroups.com.
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to