I am getting the value of input using javascript using below code.
var name=document.getElementById("firstName").value;
Getting output like rk-chaitu.I want to split this output using reg expression.
Now my question is how to convert name object to String?
Regards,
Chaitu
nameshould already be a string. You can directly usename.split(separator).EDIT: I see you have added information. Can you post more code? Perhaps the error comes from something else.