Possible Duplicate:
How to select html nodes by ID with jquery when the id contains a dot?
I have an jquery modal, the function is to show profile box.
<a rel="Modal" href="#<?php echo $username; ?>">Profile</a>
So far is ok if username isn't using ID dot (.)
<div id=<?php echo $username; ?>
The problem is coming when username using ID dot (.), example john.doe
. The box can't show anything.
So how can I set that ?
Thanks for kind help.