how can I replace strings in ASP.NET hidden field using JavaScript?
var s = document.getElementById('HF').value;
where HF is my hidden field, I want to replace some strings in HF value, but s doesn’t display replace function, should I convert s to ToString?
thanks
You mean this?
Live example: http://jsfiddle.net/2tzGH/