I am having problem with getting parameter from javascript onClick function
title = \"as\"
$(\'
title = "as"
$('')
See the added double quotes. "'+hello+'"
Also double quotes over your pushRight
function.
Your code won't work because it render an invalid html as shown below.
See, there were no quotes before and after pushRight, also before and after your string
"sa"
. Know the mistake and correct. Using inline js with html is not recommended.You have to bind events in these scenarios.