I might be overlooking the obvious but I am trying to do a basic string concatenation and it does not seem to play to well
I have the following variables
var plug = "myPlug";
var pdiv = "<p></p>";
var tab_id = "#someID";
$(tab_id + "p:contains('" + plug + "')").parent().next().append(pdiv);
For some reason tab_id does not get substituted. Any help would be appreciated.