In essence the function would contain a jQuery selection based on the id that is passed as argument. I recall seeing some code where $x was used to execute jQuery as if it was the selection.
I want to pass an element id to a function that executes jQuery using that selection. Sort of like
function doit(elname) {
$x=???;
$x.attr();
}
or something like this.
Use string interpolation with jQuery selector:
Note use of ` character, instead of ' or ". Normally the top left key to the left of '1'.