With (or similar) statement in JQuery

Posted by Salman A on Stack Overflow See other posts from Stack Overflow or by Salman A
Published on 2010-06-18T14:20:10Z Indexed on 2010/06/18 14:23 UTC
Read the original article Hit count: 131

Filed under:
|
|

Very simple question: I want to optimize the following jQuery code with maximum readability, optimal performance and minimum fuss (fuss = declaring new variables etc):

$(".addthis_toolbox").append('<a class="addthis_button_delicious"></a>');
$(".addthis_toolbox").append('<a class="addthis_button_facebook"></a>');
$(".addthis_toolbox").append('<a class="addthis_button_google"></a>');
$(".addthis_toolbox").append('<a class="addthis_button_reddit"></a>');
.
.
.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery