I have been attempting to eliminate the -webkit-appearance:none;
property using jQuery, but all my efforts have been unsuccessful. Here are the methods I have tried:
jQuery(document).ready(function(){
jQuery("select").removeAttr('style');
jQuery("select").prop("style", "");
jQuery("select").attr("style", "");
jQuery("select").css("-webkit-appearance", "");
Additionally:
jQuery(document).ready(function(){
jQuery("select:not([multiple])").removeAttr('style');
jQuery("select:not([multiple])").prop("style", "");
jQuery("select:not([multiple])").attr("style", "");
jQuery("select:not([multiple])").css("-webkit-appearance", "");
})
Lastly:
jQuery(document).ready(function(){
jQuery("select#bulk_action_stat").removeAttr('style');
jQuery("select#bulk_action_stat").prop("style", "");
jQuery("select#bulk_action_stat").attr("style", "");
jQuery("select#bulk_action_stat").css("-webkit-appearance", "");
})
The CSS for this section is as follows:
select:not([multiple]) {
-webkit-box-shadow: none;
-khtml-box-shadow: none;
-moz-box-shadow: none;
-ms-box-shadow: none;
-o-box-shadow: none;
box-shadow: none;
-webkit-appearance: none;
-khtml-appearance: none;
-moz-appearance: none;
-ms-appearance: none;
-o-appearance: none;
appearance: none;
background: url(../images/arrow.png) no-repeat right center;
height: auto;
border: 0;
padding-right: 20px;
cursor: pointer;
}
The HTML code related to this issue is as follows:
<form id="bulk_action_filter" class="form-inline" method="post">
<select class="form-control" id="bulk_action_stat" name="bulk_action_stat">
<option value="">Bulk Actions</option>
<option value="trash">Move To Trash</option>
<option value="wc-processing">Mark Processing</option>
<option value="wc-on-hold">Mark On-Hold</option>
<option value="wc-completed">Mark Complete</option>
<option value="wc-delivered">Mark Delivered</option>
</select>
<input form="bulk_action_filter" type="submit" name="filter_bulk_actions" class="check-all filter-button" value="Apply" "/>
</form>
My objective is to remove that particular part so that the select dropdown displays the down arrow symbol or 'caret'.
Any assistance on this matter would be greatly appreciated. Thank you!
-Eli