I am trying to delete text from input on a following way, and its not working in Mozilla, can anyone help?
In IE its working fine.
var start = txt.selectionStart;
var end = txt.selectionEnd;
var selectedStr = txt.value.toString().substring(start, end);
txt.value = txt.value.toString().replace(selectedStr, \"\");





Rating:
The post Delete char from input using start and end position javascript appeared first on Javascript ASK.
via Javascript ASK http://javascriptask.phpfogapp.com/delete-char-from-input-using-start-and-end-position-javascript.html
No comments:
Post a Comment