jackbowers
May 14th, 2003, 07:25 PM
hello all. how can i get rid off the single quote.
i have a function that i am passing 4 parameters to it.
function getvalue(one,two,three,four){
document.form.ftextb.value=one;
document.form.ftextc.value=two;
document.form.ftextd.value=three;
document.form.ftexte.value=four;
}
when i call the function i am passing
getvalue('<%=one%>','<%=two%>','<%=three%>','<%=four%>')
i am running into the problem of
some data having single quote like
'O' Donnel' and i am getting an error. how can i get rid of that
in javascript
thank you in advance
i have a function that i am passing 4 parameters to it.
function getvalue(one,two,three,four){
document.form.ftextb.value=one;
document.form.ftextc.value=two;
document.form.ftextd.value=three;
document.form.ftexte.value=four;
}
when i call the function i am passing
getvalue('<%=one%>','<%=two%>','<%=three%>','<%=four%>')
i am running into the problem of
some data having single quote like
'O' Donnel' and i am getting an error. how can i get rid of that
in javascript
thank you in advance