...

View Full Version : Urgent!!!



Dibya R Jena
01-22-2009, 10:18 AM
In a table i have a checkbox and a text field.

CheckBox contains a value and text box contains time in second.
when i ckicked a button:
I have to add checkbox value and time to a multiple size select box.


i used:

function addtoplaylist()
{
var player=document.createplaylist.player;
var ss=document.createplaylist.ss;
var time=':'+(ss.value*1);
var value=player.value+time;
var option=player.value+time;
var index=document.createplaylist.playlist.length;
var newoption=new Option(value,option);
var networkplayer,record;
var j=0;
var i,k;
//alert(ss.value);
for(i=0;i<player.length;i++)
{
if(player[i].checked)
{
alert(player[0].value+time);
j=1;
}
}
Here i got the value in select box : undefined:Nan

abduraooft
01-22-2009, 10:27 AM
Please read


CodingForums.com > :: Client side development > JavaScript programming
Post a JavaScript
Sticky: READ THIS BEFORE YOU POST A SCRIPT (http://www.codingforums.com/showthread.php?t=1510)
WA

and http://www.codingforums.com/postguide.htm (especially #2)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum