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
    Likes Received:
    0
    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. Advertisements

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

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Vincent
    Replies:
    1
    Views:
    570
    news.microsoft.com
    Feb 11, 2004
  2. sushamghose@gmail.com
    Replies:
    4
    Views:
    2,947
    Bob Goddard
    Jan 25, 2006
  3. VRao

    How to delete list box(text box)

    VRao, Jan 24, 2004, in forum: Computer Support
    Replies:
    3
    Views:
    3,055
    Sultan
    Jan 24, 2004
  4. punlic
    Replies:
    6
    Views:
    682
    Don Gould
    May 2, 2004
  5. Lokesh0104

    Selected Item

    Lokesh0104, Sep 24, 2008, in forum: Software
    Replies:
    0
    Views:
    1,233
    Lokesh0104
    Sep 24, 2008
  6. sunnyjiet
    Replies:
    0
    Views:
    1,843
    sunnyjiet
    Dec 8, 2009
  7. chitra_banu

    Form multiple selected List box

    chitra_banu, Apr 15, 2010, in forum: Software
    Replies:
    0
    Views:
    1,237
    chitra_banu
    Apr 15, 2010
  8. samin
    Replies:
    0
    Views:
    1,613
    samin
    Dec 13, 2010
Loading...