how to pass selected item from listbox of one form to text box of other form

Discussion in 'Software' started by chintan, Dec 19, 2007.

  1. chintan

    chintan

    Joined:
    Dec 19, 2007
    Messages:
    2
    how to pass selected item from listbox of one form to text box of other form in javascript and html

    i call given given below function setpara() in onchange event of listbox control


    function setpara()
    {
    //alert('Hey I said not to try clicking this link');

    document.form11.t1.Value=document.f1.cns_1.getSelectedValue;
    document.form11.t2.Value=document.f1.cns_2.getSelectedValue;


    }

    here t1 and t2 are textbox names

    and cns_1 and cns_2 are listbox names

    and f1 and form11 are form names



    but stilll this code is not work

    what to do...now
     
    chintan, Dec 19, 2007
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vincent
    Replies:
    1
    Views:
    422
    news.microsoft.com
    Feb 11, 2004
  2. nico
    Replies:
    2
    Views:
    745
  3. Lokesh0104

    Selected Item

    Lokesh0104, Sep 24, 2008, in forum: Software
    Replies:
    0
    Views:
    1,062
    Lokesh0104
    Sep 24, 2008
  4. chitra_banu

    Form multiple selected List box

    chitra_banu, Apr 15, 2010, in forum: Software
    Replies:
    0
    Views:
    1,091
    chitra_banu
    Apr 15, 2010
  5. samin
    Replies:
    0
    Views:
    1,454
    samin
    Dec 13, 2010
Loading...

Share This Page