I've a big project where there still exist some MS ajax functions used all over the project. I could rewrite them using jquery but for now that would take to much time.
However we now using jquery for every new functionality.
Take a look at this:
$.each($("a[xonclick]"), function (index, value) {
EnableButton(value);
});
function EnableButton(btn) {
...
var xonclick = btn.getAttribute("xonclick");
...
}
Off course i get the javascript error:
getAttribute is not a function
I know i could use btn.attr("xonclick");
but that's not an option as i mentioned before.
Is there some jquery function that gives me a MS ajax object for a jquery object? I could then use that object and pass it to the enableButton function.
UPDATE: JSFiddle: http://jsfiddle.net/wsYCJ/1/
I hope i explained it well and someone of you knows a solution for this.
Thanks!