Trying to disable select menus if search box used
Heres the mark up of the search box and a portion of a select menu:
- <input name="searchKeyword" id="searchKeyword" type="search" placeholder=" Keyword(s)" data-theme="a" />
- .....
- <select name="searchDay" id="searchDay" data-theme="a" data-mini="true">
- <option value="0">Day</option>
- <option value="1">Sunday</option>
And my script which is not doing a thing is:
- $("#searchKeyword").blur(function() {
- $('select').attr('disable');
- });
I've tried ('disabled', 'disable') tried naming the id of each select and I get nowhere.... what am I missing?
--Jim