css - Jquery Mobile - set textbox background -
i'm trying set background color jquery mobile textbox field, background not covering whole textbox. can see in image below on left , right ends of control there parts not inheriting background color.

the problem
the problem jquery mobile adding dynamically div wrappers , textbox rendered
<div class="ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-c"> <input type="text" name="name" class="inputreq ui-input-text ui-body-c" id="name" value=""> </div> if set background color div wrapper cover whole textbox, how can pure css? there way set style of element's parent?
here working jsfiddle example above. there brave jqm warrior me?
use
.ui-shadow-inset, ui-corner-all, ui-btn-shadow, ui-body-c { background-color: #d5eeff !important; } if override other component, remove award css.
update
$(".inputreq").parent().css("background-color", "#d5eeff");
Comments
Post a Comment