$('#' + object.id).someFunction()
However, this doesn't feel quite right. Isn't there a better way?
This should work
You can see it live here: http://jsfiddle.net/XsKXU/
See this documentation for reference on the