Quote:
Originally Posted by Philip M
Code:
<script type = "text/javascript">
var v1 = "UK00GEL GEL";
v1 = v1.replace(/\s\w+/,"");
alert (v1);
</script>
Instead of
var v1 = sel.options[sel.selectedIndex].value;
you can simply use
var v1 = sel.value;
A child of five would understand this. Send someone to fetch a child of five.
Groucho Marx
|
hi thankz for the reply ...its work for me
another thing can i have
var v1 = "UK00GEL GEL VERR";
exacting the VERR word OR GEL word from this
plzz help me for this