jquery - Replicating design patterns in HTML, CSS? -


suppose have following code in html -
<div id="pattern">
<span class="a">content</span>
</div>

, suppose wanted replicate , show pattern @ different positions on page. how it?
each of these pattern's have specific styling though.

it easy using jquery.

$('#pattern')     .clone()     .addclass('variate-styling')     .appendto('#container'); 

this piece of code replicate pattern block, add new styling effect , put position on page.


Comments

Popular posts from this blog

Add email recipient to all new Trac tickets -

400 Bad Request on Apache/PHP AddHandler wrapper -

php - Change action and image src url's with jQuery -