I am trying to find a way to check my parameters in different blocks of choice (total: 4). Boxes contain the same data in the value / text.
How to avoid the choice of the option being the same? (I use it to sort). And how can I integrate it into the current jquery script. (I use ajax-post for data analysis).
Here's how it should not be: 
Choose one:
<ul> <li class="move-img"> <select style="width:150px;"id="modul1" onchange="$.modules.options(this,1);"> <option value="0"></option> <option value="1">name</option> <option value="2">name2</option> </select> </li>
Pick two
<ul> <li class="move-img"> <select style="width:150px;"id="modul2" onchange="$.modules.options(this,2);"> <option value="0"></option> <option value="1">name</option> <option value="2">name2</option> </select> </li>
JQuery
$.modules = { /* Get price for option-modules */ options: function(module_id,show_divid){ var modul = $(module_id).val(); if(modul != 0){ //show price $("#showprice"+show_divid).html('<div class="ajax_loader left"></div>').fadeTo(300,0.25,function(){ var $show_price = $(this); // div tag $.post('/ajax/modules/get_prices/',{check_data:'send_data',get_module_prices_id:modul},function(data){ $show_price.fadeTo(200,100,function(){ $show_price.html(data.module_price); }); },'json'); }); } } }
source share