Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id=''>Sample text</div>
- $(".vDropbtn").attr("id", "newId");
- $(".vDropbtn").promise().done( function(){
- myFunction(); // not working
- } );
- function myFunction(){
- var id = $(".vDropbtn").attr("id");
- alert(id); // alerts previous id
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement