Javascript code for validating name

As usual, I am using Microsoft Ajax to organize my code in namespaces and classes: I will have a static class called “Lists” inside “Shp” namespace and with some help from j Query (I will need it for deferred object) I will add my methods to complete the operations. My article will show how to sent multiple items to recycle bin using Java Script CSOM.

The problem is that, to have the data submitted in a 'nice' format to the server, the function returns an array containing all the selected checkbox values. In more complicated forms you will want to set conditions on the form that combine multiple elements.I tested your first piece of code on a form and it does not work at all.Tried setting it up on onsubmit on both form and button and no go.Validating form input with Java Script is easy to do and can save a lot of unnecessary calls to the server as all processing is handled by the web browser.It can prevent people from leaving fields blank, from entering too little or too much or from using invalid characters.

Leave a Reply