HTML5 required attribute seems not working

The Solution to HTML5 required attribute seems not working is


Try putting it inside a form tag and closing the input tag:

<form>
  <input type = "text" class = "txtPost" placeholder = "Post a question?" required />
  <button class = "btnPost btnBlue">Post</button>
</form>

~ Answered on 2013-07-31 09:23:21


Most Viewed Questions: