Idiomatic mode to call a jQuery function on a Javascript object?


Given a Javascript DOM object, what is the most idiomatic way of calling a jQuery function on it? Currently, I am using:

$('#' +

However, this doesn't feel quite right. Isn't there a better way?

This should work


You can see it live here:

See this documentation for reference on the $ (aka jQuery) function