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 ([email protected]) as div id. I'm using jq method for parsing the id. After executing, it shows 'Unrecognized expression': #[email protected]
This is the jq method, I'm using to parse
function jq( myid )
{
return "#" + myid.replace( /(:|\.|\[|\])/g, "\\$1" );
}