I am trying to call a query function call on a variable, but it is not working. Is there any way around this?
$(function() {
$variableName = '#fanpagePanelHeader';
$(variableName).click( function()
{
$("#videoAcco").click();
}
);
});
I’m new to jQuery, but shouldn’t it be: