I have an element with id=\"A B\". The following code fails:
There should not be space in an id, but this seems to works :
$("[id=A B]")