Thanks a lot to u jorn. I am facing one more problem.
Below validation is working without thickbox plugin but when I used it in thickbox it's not working ? I think equalTo function is not working in thickbox? "data[User][password2]": { required: "Repeat your password", minlength: jQuery.format("Enter at least {0} characters"), equalTo: "Enter the same password as above" } Please help me Thanks On Oct 12, 8:30 pm, "Jörn Zaefferer" <[EMAIL PROTECTED]> wrote: > Seehttp://docs.jquery.com/Plugins/Validation/Reference#Fields_with_compl... > > Jörn > > On Sun, Oct 12, 2008 at 4:49 PM, bookme <[EMAIL PROTECTED]> wrote: > > > Hi, I am using Jquery plugin for client side validation. But due to a > > filedname I am facing a problem. > > > Example > > var validator = $("#UserSignupForm").validate({ > > rules: { > > data[User][username]: { > > required: true, > > minlength: 2, > > remote: "users.php" > > } > > > }); > > > HTML :<input id="id_username1" name="data[User][username]" type="text" > > value="" maxlength="50" /> > > > When I am using data[User][username] as a filed name in jquery > > validation, it's not working but in case of other name like username > > it's working. I think there is problem of [][] (bracket of array). But > > I can not change data[User][username] so I want to use id_username1 > > instead of filename in validation plugin but don't know how to use > > ID ?. > > > Is there any other solution? > > > Also I have to face same problem in many plugins becuase CakePHP > > return name like data[User][username] so How can I override a name > > from ID? > > > Please Help me > > Thanks