Skip to content

Instantly share code, notes, and snippets.

@notesolution
Created June 18, 2012 19:04
Show Gist options
  • Save notesolution/2950106 to your computer and use it in GitHub Desktop.
Save notesolution/2950106 to your computer and use it in GitHub Desktop.
html = '''
<table class='dashboard'>
<tr>
<td>
<div class="books_list"></div>
<div class = courses_list"></div>
</td>
<td>
<div class = "documnets_list"></div>
</td>
</tr>
</table>
'''
sel = $('.content')
if $('.dashboard').html() is null
sel.html html
else
sel.append html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment