Answer by punkbit for get the id value before the function by using jquery
// first, extend jquery with `validate` method$.fn.validate = function() { var isValid = this.attr('id') === 'test' return isValid}$(document).ready(function(){ if ($("#test2").validate()) {...
View Articleget the id value before the function by using jquery
$(document).ready(function(){ $("#test").validate(); function validate(){ var x= //do some code it will return #test alert(x); }});I want to the value test or #test how to get ithow can do that?
View Article
More Pages to Explore .....