[jQuery] val function for select with 'special character' not working

[jQuery] val function for select with 'special character' not working


In the FAQ it says that if you have an element with a 'special
character' in it you must escape it. Fair enough. I have this select:
<select id='app.id'>
<option>...
</select>
When I try the following:
$("select#app\\.id").val()
I get null. These don't work either:
$("#app\\.id").val()
$("#app.id").val()
$("select#app.id").val()
What am I doing wrong?
Thanks
Bob