Bombdrop
Apr 30th, 2004, 05:14 AM
Hi all I'm not much cop at JavaScript ( thought i do thinlk it's pretty cool) now how can i display the value of an item the code bellow sort of works
<SCRIPT LANGUAGE="JavaScript">
<!--
function submitform_List() {
alert("TEST!!!");
document.choiceForm.MyAccount.length++;
alert(document.choiceForm.MyAccount.length);
alert(document.choiceForm.MyAccount[0].text);
document.choiceForm.MyAccount[1].text="BombDrop";
//I can not display the value i have added to the new option???
document.choiceForm.MyAccount[1].value="123";
alert(document.choiceForm.MyAccount.value);
//document.choiceForm.submit();
}
</script>
Any help would be great
:wave: :thumb: :wave:
<SCRIPT LANGUAGE="JavaScript">
<!--
function submitform_List() {
alert("TEST!!!");
document.choiceForm.MyAccount.length++;
alert(document.choiceForm.MyAccount.length);
alert(document.choiceForm.MyAccount[0].text);
document.choiceForm.MyAccount[1].text="BombDrop";
//I can not display the value i have added to the new option???
document.choiceForm.MyAccount[1].value="123";
alert(document.choiceForm.MyAccount.value);
//document.choiceForm.submit();
}
</script>
Any help would be great
:wave: :thumb: :wave: