MCQs > IT & Programming > HTML 5 > Which will restrict an input element to accept only numerical values in a text field?

HTML 5 MCQs

Which of the following will restrict an input element to accept only numerical values in a text field?

Answer

Correct Answer: <input type="text" pattern="[0-9]*" />

Explanation:

Note: This Question is unanswered, help us to find answer for this one

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

HTML 5 Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it