I'm loading div dynamically and binding the click event for the div using
$(jq(userData.email)).live('click', function()
{
alert('hello from binded function call');
});
Here i'm using emailid (a@b.com) as div id. I'm using jq method for parsing the id. After executing, it shows 'Unrecognized expression': #a@b.com
This is the jq method, I'm using to parse
function jq( myid )
{
return "#" + myid.replace( /(:|\.|\[|\])/g, "\\$1" );
}