Can somebody tell me how to get attibute value of a selected node/element in jquery.
$.extend($.validator.messages,{
required: = $(element).attr('ErrorMessage');}
});
I have tried the above code but it doesn't work.
My element contain attribute called ErrorMessage which I want to retrive to show the custom error message. Whenever user doesn't type value i want to show my custom message.