wai aria - Web accessibility: input type="button" that submits -
i have forms use submit butttons this: <input type="button" onclick="validateandsubmit()">
they work fine, accessibility checkers there's no submit button in form, because there isn't one.
i know type="button" makes clear acts button, don't know how indicate assistive technologies acts submit button without using type="submit". (i'd rather not use actual submit button, because unexpected javascript errors submit form. of course can trap errors, it's less robust in sense, , wonder if there's way.)
is there aria role or other technique makes clear button submits form (assuming validates)?
<button type="submit" onclick="validateandsubmit()">submit</button>
should trick. there no need aria role (button
) in case, since button
used here defined in html specification.
Comments
Post a Comment