jquery - How do I clear the text contents of a div in javascript? -


I am temporarily adding an element to a div, tempDiv, and link that link from a div Is added, # content has been displayed here, I need to clean the contents of tempDiv so that the links are not linked to each other, which will create the string of the URL which is not linked anywhere.

  $ (document) .ready (work () {$ .getJSON ("data.php", for function {data} {i = 0; i  

I'm going to clear the temporary content of the div

You can use $ ("# tempDiv") empty () .


Comments

Popular posts from this blog

windows - Heroku throws SQLITE3 Read only exception -

lex - Building a lexical Analyzer in Java -

python - rename keys in a dictionary -