How to check for null,white spaces and new lines while validating for a textarea using jquery. If the textarea is empty and has only new lines or spaces should raise an alert
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
- how to get selected text from iframe with javascri
Thanks 'Keith Rousseau'! it worked. moreover if you have one text-box and one textarea than below jquery code will be fine:
Assuming html that looks like
First create a jquery validation method.
Now its a simple matter of telling the form validator to use this method.