Try to search your question here, if you can't find : Ask Any Question Now ?

HTML <input> required Attribute not working

HomeCategory: stackoverflowHTML <input> required Attribute not working
willson asked 2 weeks ago

My required attribute which i placed inside a row of a table doesn’t seem to be working at all.

I tried closing and un-closing the input tags and changing the button type to input type = “submit” but still the problem persist.

<tr>
  <form action="">
    <td><input type="text" id="itn" required/></td>
    <td> <input type="text" id="prc" required/></td>
    <td> <input type="text" id="dt" required/></td>
    <td><input type="text" id="qn" required/></td>
    <td><input type="text" id="am" required/></td>
    <button type="button" onclick="add()" class="button button3">
      ADD
       </button>
</tr>

When I execute the code on my google chrome browser, the browser doesn’t show any alert or warnings if i miss out any fields.

1 Answers
Best Answer
Amit answered 2 weeks ago
Your Answer

3 + 11 =

Popular Tags

WP Facebook Auto Publish Powered By : XYZScripts.com