you can use promise
$('.element').css("color","yellow").promise().done(function(){
alert( 'color is yellow!' );
});
More Related Contents:
- How to display an chage photo option on mouse hover similar to linkedin using Javascript? [closed]
- Input type="text" with select functionality after clicking on Input type="text"
- jQuery .animate function not responding properly
- How to force browser to show image 3 inches wide?
- How to change css of a div with a certain id when hovering over a certain element anywhere in the whole webpage?
- Reloading a single div in an html page [closed]
- Pure JavaScript toggle for select / deselect all checkboxes [duplicate]
- Javascript Execute message when mouse is on left side of page [closed]
- Different look in desktop, how to setup
- fixing slider on my website [closed]
- Can I use HTML tags in the options for select elements? [duplicate]
- Clear icon inside input text
- Changing nav-bar color after scrolling?
- How to connect HTML Divs with Lines? [duplicate]
- Hide scrollbar while still being able to scroll with mouse/keyboard [duplicate]
- make html text input field grow as I type?
- How can I remove the “No file chosen” tooltip from a file input in Chrome?
- width/height after transform
- Save a pre element as PDF with CSS
- Creating a select box with a search option
- jQuery Validation using the class instead of the name value
- Load HTML page dynamically into div with jQuery
- Possible to associate label with checkbox without using “for=id”?
- Center flex item in container, when surrounded by other flex items
- How to define the css :hover state in a jQuery selector?
- Fill available spaces between labels with dots or hyphens
- Change the style of :before and :after pseudo-elements? [duplicate]
- How to resize Twitter Bootstrap modal dynamically based on the content
- Uncaught TypeError: Cannot read property ‘top’ of undefined
- collapse and expand tabs jquery / simple accordion