asp.net - How to change Chrome required field processing -
i have input fields required attr
<input id="name" required="" placeholder="write name">
additionally have button makes post , other link makes postback well.
but in case input field has't data chrome block post-back action, , show chrome pupup box information need fill data on form. in same time ie allows it. how resole ? of course can remove attribute javascript before post-back action, not sure right way.
i think shouldn't count on html5 required
attribute since (in case of ie) ie 10+ supports (see "form validation" section here: web forms - dive html5). of course, same goes placeholder
attribute in cases it's can live (and having working validation more critical).
i think should use validation functionality provided asp.net itself, it's easy started , can make work , without javascript enabled on client. more info here: understanding asp.net validation techniques.
Comments
Post a Comment