I’m using the Play Framework. I want to use the HTML5 input type ‘search’. So, I want to output:
<input type="search" />
I’ve tried:
@inputText(field = myForm("myField"), 'type -> "search")
but it still kept the type=”input”
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
the method
inputTextrepresents an HTML input text (see the source code here).You have to define your own template to define the input of type
search. Take a look at the Play documentation.