<form id="bet-form"> <table> .... <tr><td colspan=5>multiply: <input type="text" id="multiple" size="2" value="1" onkeypress="multiply()"></td></tr> </table> </form>
function multiply()
{
multiple=document.forms['bet-form'].elements[39].value;
alert(multiple);
}
elements[38] is what I expected, the very next <input> is the text box but the alert shows nothing?

New Topic/Question
Reply


MultiQuote




|