HTML required readonly input in form
I'm making a form. And on one input tag is an OnClick event handler, which is opening a popup, where you can choose some stuff, and then it autofills the input tag. That input tag is also readonly , so only right data will be entered. This is the code of the input tag: <input type="text" name="formAfterRederict" id="formAfterRederict" size="50" required readonly="readonly" OnClick="choose_le_page();" /> But the required attribute isn't working in Chrome. But the field is required. Does anybody know how I can make it work? I had same requirement as yours and I figured out an easy way to do this