I m converting HREF dynamically to load some CSS like this
$(data).find("link").each(function () {
var oldHref = $(this).attr("href");
$(this).attr("href", "pdfviewer/RenderPreviewStyles?csspath=" + oldHref);
});
I want to call another function when HREF call is done, something like
$(this).attr("href", "pdfviewer/RenderPreviewStyles?csspath=" + oldHref)
.success(function(){
alert("Call other function");
});
But it is giving JS error
$(...).attr(...).success is not a function
Please suggest some way around..