Whing Dela Cruz
asked on
Html5 string
How to get the specific value of a string in textbox? for example; The value of an input="Gaisano" i want only to get the letters "Gai" or the first letter of the word. i used this example but it doens't work.
var fieldLength = document.getElementById('m yText').va lue.length ;
var str = document.getElementById('m yText').va lue;
str = str.substring(1, str.length + 5);
var fieldLength = document.getElementById('m
var str = document.getElementById('m
str = str.substring(1, str.length + 5);
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
You are welcome.
ASKER