jquery - Replacing double quotes while sending parameter to javascript function -


this jsfiddle :

http://jsfiddle.net/5kdek3vn/

i have button follows:

<button class="buttoncss" title="modify artifact file" onclick="setfiledescriptionforupdate('!@#$%^&amp;*()_+-=~`{}|[]\:" ;'&lt;&gt;?,.="" ','state.dat','167','1','c:\\pp_artifactsuploadedfiles\evalid_318\state.dat');">modify</button> 

in on click calling setfiledescriptionforupdate function first parameter string , follows:

!@#$%^&*()_+-=~`{}|[]\:";'<>?,./ 

when " involved in string creates problem.

what changes can make avoid this??

please me.

use below code :-

var user = "hi \" user"; var test = user.replace("\"", ""); document.body.innerhtml = test; 

Comments

Popular posts from this blog

java - How to specify maven bin in eclipse maven plugin? -

Error while updating a record in APEX screen -

c++ - In an add-in in Excel, written in C(++), how does one get the name of the function which called into the addin? -