I have

    <div id='name' onchange='load_div()'>
        <b>Car Name : </b>
      <select name="carlist" form="carform">
        <option value="volvo">Volvo</option>
        <option value="saab">Saab</option>
        <option value="opel">Opel</option>
        <option value="audi">Audi</option>

    <div id='name2' onchange='load_div()'>
        <b>second Car Name : </b>
      <select name="carlist" form="carform">
        <option value="volvo2">Volvo</option>
        <option value="saab2">Saab</option>
        <option value="opel2">Opel</option>
        <option value="audi2">Audi</option>

Here I have a link called "Add"
which calls function 'onclick'=>'show_div_test(pass_value_1,pass_val_2)'

I want to pass selected values from above dropdown to
but how to get pass_value_1 and pass_val_2 so that i can pass it to function?

Member Avatar

Are you using plain js or jquery or something else?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.