Advertisement
Guest User

Untitled

a guest
Oct 8th, 2015
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.46 KB | None | 0 0
  1. var array = document.getElementsByTagName('blockquote');
  2. for(var i = 0; i < array.length; i++) {
  3. array[i].savedContent = array[i].innerHTML;
  4. array[i].innerHTML = '';
  5. array[i].style.margin = 0;
  6. }
  7.  
  8. how about something like this
  9.  
  10. <br class="b"><blockquote>
  11. commentary
  12. </blockquote><br class="b">
  13.  
  14. then toggle the display of class b. so
  15. if blockquote is display:block class b is display:none
  16.  
  17. and
  18. if blockquote is display:none class b is display:inline
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement