How to programmatically inject jquery code in chrome extension

1k Views Asked by At

I have a requirement of inserting following jquery code on click of an extension

var klo=$(".dijitAccordionTitle.dijitAccordionTitle-selected").parent().siblings().css("display","none")
$('#containerDiv').show().parentsUntil('body').andSelf().siblings().hide();
$("#dijit_layout_AccordionContainer_0").height($(document).height())

Similar concept is explained in "Programmatic injection" of http://developer.chrome.com/extensions/content_scripts.html.My issue is that i want to run jquery code instead of plain javascript code. Thanks

0

There are 0 best solutions below