You may use the charAt method of the String object
For example to get the last caracter of a string:
<script>
var yourString="WHATEVER";
alert(yourString.charAt(yourString.length - 1));
</script>
You may use the charAt method of the String object
For example to get the last caracter of a string:
<script>
var yourString="WHATEVER";
alert(yourString.charAt(yourString.length - 1));
</script>