How To Add JavaScript or jQuery to a WordPress Page
![Published Date](https://www.ericmichaelstone.com/wp-content/themes/me3/images/calendar.png)
NO Blank Lines!
1 2 3 4 5 6 7 8 9 10 11 |
<script type="text/javascript"> <!-- jQuery(document).ready(function(){ jQuery('#yourForm').on('submit', function(e){ if (jQuery('#yourInput').val() < 1) { alert('Please enter a whole number greater than 0'); return false; } }); }); //--></script> |
Leave Your Comment![Leave a comment](https://www.ericmichaelstone.com/wp-content/themes/me3/images/comments.png)
All fields marked with "*" are required.