raja123 Noob
Posts : 3 Join date : 2010-08-24
| Subject: Using jQuery validation in a sharepoint web part Tue Aug 24, 2010 11:55 am | |
| As we all know, a sharepoint page can only have one <form > tag in it. As anyone who wanted to use jQuery validation knows, the validation script needs to run on a form tag. So how do I use the validation code in a sharepoint web part? The answer is to run the script against the form that already exists in the page. For example, I had to write a web part with an email address field, and wanted to help the users by validating the text they entered is a valid email address on the client side (I also validate on the server side - just in case someone is running a browser with no script). This is the "Render" override code that I used: software packagingStainless Steel Sheet | |
|