Hello Christophe,

This is exactly what I want. Thank you so much for your help!

Best Regards,
-Yongzhi

On Tuesday, April 7, 2015 at 11:02:05 PM UTC-7, Zbouboutchi wrote:
>
>  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, [email protected] <javascript:> 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
>
>  <button id="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 [email protected] <javascript:>.
> To post to this group, send email to [email protected] <javascript:>.
> 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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/webpy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to