Note that there are some explanatory texts on larger screens.

plurals
  1. POjquery validate position
    primarykey
    data
    text
    <p>I'm trying to use jquery validate. Following the example: <a href="http://docs.jquery.com/Plugins/Validation" rel="noreferrer">http://docs.jquery.com/Plugins/Validation</a> works great and I'd like to reproduce with my code. However I'm not sure where to call it.</p> <p>What I have is a generated html table and when you click the "Edit" button for any row it opens up a form. I want to validate this form with jquery. I believe it is working but when I hit submit on the form I hide the form so I can never see the validation work...I think.</p> <p>I generate the form with javascript and the submit button looks like this:</p> <pre><code>var mysubmit = document.createElement("input"); mysubmit.type = "submit"; mysubmit.name = "Submit"; mysubmit.value = "Apply" mysubmit.onclick = function() { //return formSubmitactivecameras(); js("#EditCameraForm").validate(); this.form.submit(); }; myform.appendChild(mysubmit); </code></pre> <p>This is hardly enough information so I have all the code in this fiddle: <a href="http://jsfiddle.net/UtNaa/36/" rel="noreferrer">http://jsfiddle.net/UtNaa/36/</a>. However I can't seem to get the fiddle to work when you click the Edit button. Which opens up a form where I want the validation.</p> <p>I'm not sure validation is actually working. Maybe it is but when you hit the submit button on the form, the form hides. Again the fiddle doesn't work to show the form but it does work for me on my site. Hopefully the code in there will at least help. </p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload