>
> form.element('input[type=submit]',
replace=lambda button: CAT(button,
> INPUT(_id="close",_class="btn",_type="button",_value="Sluit")))
> form.element('input[id=close]').update(data={'dismiss':'modal'})
>
form.element('input[id=close]')['_aria-hidden'] = 'true'
But why not just set these attributes when you create the input element:
input = INPUT(_id="close", _class="btn", _type="button", _value="Sluit",
**{'data-dismiss': 'modal', 'aria-hidden': 'true'})
form.element('input[type=submit]', replace=lambda button: CAT(button, input
))
Anthony
> I tried adding _aria-hidden="true" but that result in failed to compile
> because: keyword can't be an
> expression.
>
> I tested the form without aria-hidden="true" and it dismisses the modal
> window any way. What
> do I need the aria-hidden="true" for?
>
>
> Kind regards,
>
> Annet.
>
>
> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
>
>
>
--
---
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].
For more options, visit https://groups.google.com/groups/opt_out.