How to add and immediately remove html element by jquery -


i have button , want create or append element when clicking , after 1 sec has removed automatically how can it

you can try

  $('#btnid').click(function(){  $( "#divid" ).append( "<p id="test">test</p>" );       settimeout(function(){       $('#test').remove();     }, 1000);     }) 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -