Greetings all! Super new to Jquery but so far am loving it, haven't really written much of my own code, mostly just using plugins.
I've got two issues I have come into for some form validation I am trying to do.
1) I'm having trouble using nested selectors, I've seen some examples of them but can't figure out the format of constructing them. For instance I am trying to bind an event on blur to form fields that only apply in a certain form, how can I do this? Also how can I select only the submit button in a given form as well? I have the form name, but I can't get the submit button's name or id because it's a .NET control in a master page, so those properties have super long auto generated values. I want to make it generic so it works on any form anyway as long as I supply the name.
2) Has anyone had trouble over riding a submit button in using .net? I have tried the following code:
$('form').submit(function() { return false;});
and putting that into the document ready function. Basically I want it so that if the form isn't valdiated when they press the submit button it doesn't actually proceed to the server. However in the little test I hooked up, the action that fires on the button press in the .NET server code always even when trying to implement this code. How can I achieve this?
Thanks all!