javascript - Code works fine in JSFiddle but not in my browser -


i'm working on multiple dropdown menus used ranking. found excellent code stackoverflow:

how prevent duplicate values in multiple dropdowns using jquery

it works nicely on jsfiddle, can't seem code work offline in chrome or ie browser. can help?

<script type="text/javascript">     $(document).ready(function() {         $(".go").change(function() {             var selval = [];             $(".go").each(function() {                 selval.push(this.value);             });              $(this).siblings(".go").find("option").removeattr("disabled").filter(function() {                 var = $(this).parent("select").val();                 return (($.inarray(this.value, selval) > -1) && (this.value != a))             }).attr("disabled", "disabled");         });         $(".go").eq(0).trigger('change');     }); </script> 

it depends on "doesn't work" means you. :) can see errors on console? can see 5 selects? did copy correctly codes? jsfiddle code works me 2.1.4 jquery.


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

android - Go back to previous fragment -