See the doc
http://web2py.com/books/default/chapter/29/07/forms-and-validators?search=Adding+buttons+to+FORMs#Adding-buttons-to-FORMs


quarta-feira, 22 de Maio de 2019 às 09:12:19 UTC+1, Константин Комков 
escreveu:
>
> Web2py automatically add event listeners and class="btn" for button. What 
> if my form contain more then one button or I don't want use that class? 
> Usually I have used input type="button" *without form* in that case, but 
> now text in my button may contain 2 rows and I can't use input becouse it 
> inline element. How can I delete all web2py event listeners for buttons?
> For class I do next:
> el = document.getElementById("bak");
> el.classList.remove("btn");
> In my case I want use form with two button which redirect user on one page 
> but that buttons have different values. Hm.. may I use two forms?
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/473ab3a7-ea5d-4e5b-abcd-1ab0538cd1fb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to