Skip to content Skip to sidebar Skip to footer

Using Jquery Validation Plugin With A Form Written In Struts

I want to implement the jQuery validation plugin for use in a web application written in java and struts. I just want to use it to validate form inputs to see if they conform to ce

Solution 1:

The fact that Struts is used to generate the form is irrelevant. JavaScript executes in the browser, and HTML is HTML.

The line of code above is not HTML. It's a Struts JSP tag that is evaluated at server-side and generates HTML code that is sent to the browser. jQuery only cares about the HTML. And the above code will generate the following HTML:

<inputtype="text" name="groomFirstName" maxlength="30" tabindex="1"id="groomFirstName" size="15" 
       onchange="properCase(this.id); needToConfirm=true;" />

Post a Comment for "Using Jquery Validation Plugin With A Form Written In Struts"