jquery IDs with spaces

Use an attribute selector.

$("[id='content Module']").whatever();

Or, better, specify the tag as well:

$("div[id='content Module']").whatever();

Note that unlike $(‘#id’), this will return multiple elements if you have multiple elements with the same id within your page.

Leave a Comment