Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: Urgent!!!

  1. #1
    New to the CF scene
    Join Date
    Jan 2009
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Urgent!!!

    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

  • #2
    Supreme Master coder! abduraooft's Avatar
    Join Date
    Mar 2007
    Location
    N/A
    Posts
    14,851
    Thanks
    160
    Thanked 2,223 Times in 2,210 Posts
    Blog Entries
    1
    Please read
    CodingForums.com > :: Client side development > JavaScript programming
    Post a JavaScript

    Sticky: READ THIS BEFORE YOU POST A SCRIPT
    WA
    and http://www.codingforums.com/postguide.htm (especially #2)
    The Dream is not what you see in sleep; Dream is the thing which doesn't let you sleep. --(Dr. APJ. Abdul Kalam)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •