I am trying to pass a string in the onClick event handler function\'s arguments of the dynamically created anchor element, see the fiddle http://jsfiddle.net/shmdhussain/bXYe4/.
You have to use proper string sytax. This
"dd"
will result in
dd
You cannot use ' for onclick and the parameters of test. Use \" instead.
Which results in