asp.net - Using jquery with nested masterpages -


Can anyone show me how to use jquery in ASP.NET nested master page? I have my main masterpace where I've added the link for jquery libaray and validation validation structure.

How do I recognize the textbox within my page?

I have tried

validity (code # $ {"> {code> $ (" # aspnetForm ") ({rule: {: {minlength : {Required: true}, & lt;% = txtContactEmail UniqueID% & gt;: {required: true, email: true}}, message: {& lt;% = txtPostCode.UniqueID% & gt ;: {Required: "* Required field *", minlength: "* Please enter at least 2 characters *"}}});

Although nothing happens. Can anyone tell me in the right direction?

You can type the wrapping method that passes the ID on the jQuery function,

< P> javascript:

(firstSelector) .hhatever (); }

.aspx:

  & lt; Script & gt; MakejQueryOnMangledNamesLessPainful ('# & lt;% = Thing.ClientID%>', '& lt;% = OtherThing.GetClientSelector ()%> & gt;); & Lt; / Script & gt;  

Where GetClientSelector string is a selector, either a group of IDs or possibly some server-derived sections. Or something else, in fact


Comments