You can just do
form.element(_id='member_email')['_onchange']="alert('hello world')"
On Jan 4, 6:00 am, Neveen Adel <[email protected]> wrote:
> I want from controller to add onchange method to input text
>
> for example:
>
> form[0].element(_id='member_email__row')[1].element
> (_id='member_email') // this line will produce the following output:
> <input class="string" id="member_email" name="email" type="text"
> value="" />
>
> How to add onchang method from controller to be
>
> <input class="string" id="member_email" name="email" type="text"
> onchange="" value="" />
>
> Thanks
--
You received this message because you are subscribed to the Google Groups
"web2py-users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en.