I knew there is a JQuery form validation, but if there is no form, how to validate with Jquery? Say, there is a
<textarea></textarea>
, I want to send the text via AJAX instead of form. How to validate before sending?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The
<textarea>tag is not allowed outside a<form>. What you’re proposing wouldn’t pass an HTML validator. Just surround your<textarea>with a<form>.