Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $(function(){
- $('#one').change(function(){
- var value = $(this).children(':selected').val();
- $('#two').children('optgroup')
- .not('[label='+value+']')
- .attr('disabled', 'disabled')
- .end()
- .filter('[label='+value+']')
- .removeAttr('disabled');
- });
- });
Add Comment
Please, Sign In to add comment