I work with symfony 2.0 and I have a view (test.html.php) that contains a
form:
<form action="" method="post" rel="">
<input type="hidden" name="action" value="test" />
<input name="myinput" type="text" value=""/>
<input type="submit" class="button" value="Go" />
</form>
This form sends the value of myinput to testAction in ActionController (and it works) but I wanna add a validation function with jQuery and/or AJAX to validate the myinput value before sending it to the controller and I don't know where to integrate it exactly
Thank you in advance
您可以将HTML5验证用于客户端验证。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.