I have a function where I passes the value dynamically
<a href="javascript:void(0);" onclick="searchError(0011)">0011</a>
In javascript am just passing this value and it returns me 9
JS
function searchError(s){
alert(s);
}
Need help to understand why ?
I fixed it by quoting the value like
<a href="javascript:void(0);" onclick="searchError('0011')">0011</a>