Something like this should do the trick: https://jsfiddle.net/TmJCE/898/
$('#name2').change(function(){
$('#name').prop('selectedIndex',0);
});
$('#name').change(function(){
$('#name2').prop('selectedIndex',0);
});
More Related Contents:
- javascript: hiding contents of key
- How to add class to div based on radio button selected in it?
- jQuery Ajax POST example with PHP
- How to import jquery using ES6 syntax?
- How to get a style attribute from a CSS class by javascript/jQuery?
- Submit multiple forms with one submit button
- How to load all the images from one of my folder into my web page, using Jquery/Javascript
- How to count the number of occurrences of each item in an array? [duplicate]
- How do I check if string contains substring? [duplicate]
- Jquery: change event to input file on IE
- jquery clone form fields and increment id
- Preventing click event with jQuery drag and drop
- Limiting number of lines in textarea
- jQuery single selector vs .find()
- Javascript with jQuery: Click and double click on same element, different effect, one disables the other
- jQuery counting elements by class – what is the best way to implement this?
- Google Maps Display:None Problem
- JavaScript keypress event not raised on Android browser
- How to display pie chart data values of each slice in chart.js
- Perform curl request in javascript?
- JQuery $.ajax() post – data in a java servlet
- Iterating a JavaScript object’s properties using jQuery
- Blur event stops click event from working?
- Randomize setInterval ( How to rewrite same random after random interval)
- Will $(window).resize() fire on orientation change?
- difference between parseInt() and parseFloat() [duplicate]
- Convert iso timestamp to date format with Javascript?
- Dynamically replace img src attribute with jQuery
- Disabling links to stop double-clicks in JQuery
- Screen Coordinates of a element, via Javascript