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>
      </select> 
    </div>

    <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>
      </select> 
    </div>

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 for diafol

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, networking, learning, and sharing knowledge.