Zend Framework form with jquery

前端 未结 3 829
孤独总比滥情好
孤独总比滥情好 2021-01-31 11:46

Any one a idea how to simply create a form with Zend_Form and jquery? I want to use Zend_Form to validate the form so I don\'t have to dual script the form in JavaScript and PHP

3条回答
  •  野性不改
    2021-01-31 12:38

    Well, Zend_Form will not generate any client-side JavaScript validators for you, if that's what you mean.

    BUT: You can just do all the validation on the server, and use jQuery to hook into the fields' change events, and to AJAX-ify the form validation.

    Check that for a sample.

提交回复
热议问题