Valid 70-480 Dumps shared by ExamDiscuss.com for Helping Passing 70-480 Exam! ExamDiscuss.com now offer the newest 70-480 exam dumps, the ExamDiscuss.com 70-480 exam questions have been updated and answers have been corrected get the newest ExamDiscuss.com 70-480 dumps with Test Engine here:
You are developing a customer web form that includes following HTML. <input id="txtValue"/> You need to develop the form so that customers can enter only a valid country code consisting of three English alphabet characters. Which code segment should you use?
Correct Answer: C
Explanation/Reference: * The val() method returns or sets the value attribute of the selected elements. * HTML <input> pattern Attribute The pattern attribute specifies a regular expression that the <input> element's value is checked against. Example An HTML form with an input field that can contain only three letters (no numbers or special characters): <form action="demo_form.asp"> Country code: <input type="text" name="country_code" pattern="[A-Za-z]{3}" title="Three letter country code"> <input type="submit"> </form> Reference: HTML <input> pattern Attribute http://www.w3schools.com/tags/att_input_pattern.asp