Reputation: 1697
I want to call a function after css()
jquery. I want something like this :
$("p").css({"color":"red"}).function({
$("div").hide();
});
Upvotes: 2
Views: 2574
Reputation: 11750
You can use queue()
function:
$("p").css({"color":"red"}).queue(function() {
$("div").hide();
$(this).dequeue();
});
Upvotes: 7