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();
  5.  

Report this snippet


Comments


You need to login to view comments.