Possible Duplicate:
How can I pass a parameter to a setTimeout() callback?
Is there ever a good reason to pass a string to setTimeout?
I want to call a function loadPHPQuote(code)
after 1 second. And want to pass the parameter called code which is containing both numbers and text characters. But setTimeout()
wasn't work if the code contain a character it is OK with only numbers.
Here is my code
setTimeout('loadPHPQuote('+code+')',1000);
Is there anyone who can help me with this please.....?