diff --git a/src/main/webapp/js/help.js b/src/main/webapp/js/help.js index b1b96c2e8..04356c40f 100644 --- a/src/main/webapp/js/help.js +++ b/src/main/webapp/js/help.js @@ -11,9 +11,10 @@ $(function(){ }); $('#searchOptionsClearButton').on('click', function(e) { - $('#labelTypeSearchOption option').removeProp('selected'); - $('#sortSearchOption option').removeProp('selected'); - $('#numSearchOption option').removeProp('selected'); + $('#labelTypeSearchOption').prop('selectedIndex', -1); + $('#langSearchOption').prop('selectedIndex', 0); + $('#sortSearchOption').prop('selectedIndex', 0); + $('#numSearchOption').prop('selectedIndex', 0); return false; }); diff --git a/src/main/webapp/js/index.js b/src/main/webapp/js/index.js index 6864d99e7..5caa745dc 100644 --- a/src/main/webapp/js/index.js +++ b/src/main/webapp/js/index.js @@ -11,9 +11,10 @@ $(function(){ }); $('#searchOptionsClearButton').on('click', function(e) { - $('#labelTypeSearchOption option').removeProp('selected'); - $('#sortSearchOption option').removeProp('selected'); - $('#numSearchOption option').removeProp('selected'); + $('#labelTypeSearchOption').prop('selectedIndex', -1); + $('#langSearchOption').prop('selectedIndex', 0); + $('#sortSearchOption').prop('selectedIndex', 0); + $('#numSearchOption').prop('selectedIndex', 0); return false; }); diff --git a/src/main/webapp/js/search.js b/src/main/webapp/js/search.js index 315ce7803..a27c78143 100644 --- a/src/main/webapp/js/search.js +++ b/src/main/webapp/js/search.js @@ -15,9 +15,10 @@ $(function(){ }); $('#searchOptionsClearButton').on('click', function(e) { - $('#labelTypeSearchOption option').removeProp('selected'); - $('#sortSearchOption option').removeProp('selected'); - $('#numSearchOption option').removeProp('selected'); + $('#labelTypeSearchOption').prop('selectedIndex', -1); + $('#langSearchOption').prop('selectedIndex', 0); + $('#sortSearchOption').prop('selectedIndex', 0); + $('#numSearchOption').prop('selectedIndex', 0); return false; });