jquerymobile form validation
<p>how to validate form in jquerymobile i have used jquery plugin but didnt work anyone.can any please tell me how can i validate form in jquerymobile i follow this code but didnt work</p>

<pre><code>$("#myform").validate({
   rules: {
     name: "required",
     email: {
       required: true,
       email: true
     }
   },
   messages: {
     name: "Please specify your name",
     email: {
       required: "We need your email address to contact you",
       email: "Your email address must be in the format of name@domain.com"
     }
   }
})
</code></pre>
