Storing results from jQuery selection

/ Published in: JavaScript
Save to your folder(s)

Copy this code and paste it in your HTML
  1. var $myBox = $('#test');
  2. /*the variable myHTML is equal to the content's of
  3. '#test'*/
  4. var myHTML = $myBox.html();

Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.