quiksilv
05-13-2004, 10:13 AM
i have a js function that gets called from a link that should populate a txtbox with the value of the link. what i want to do is not insert the value if it already exists in the txtbox. this is what i have
<script language="JavaScript" type="text/JavaScript">
function TWS(SMS)
{
// var str = parent.SendSMS.SMSTo
if (parent.SendSMS.SMSTo.indexOf(SMS)=-1)
{
str.value = str.value + SMS + ","
}
}
</script>
any help would be great:confused:
<script language="JavaScript" type="text/JavaScript">
function TWS(SMS)
{
// var str = parent.SendSMS.SMSTo
if (parent.SendSMS.SMSTo.indexOf(SMS)=-1)
{
str.value = str.value + SMS + ","
}
}
</script>
any help would be great:confused: