Im using jquery mobile and trying to remove some classes instead of writing up a bunch css. When I test it in jsFiddle it works fine but not when I view it in the browser. Ive put the script inside the data-role="page" so it should of loaded correctly. Ive also tried .trigger("updatelayout"); but that did not seem to work. Any help would be much appreciated since this should have been a 2 minute task turn into 2 hour headache.
jquery:
$("#panelforminput div").removeClass("ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-c");
$("#newdoctorDiv ul").removeClass("ui-shadow");
jsFddle:
http://jsfiddle.net/adam123/9XXcj/6/
here's the markup from firebug:
<span id="panelforminput" class="ui-li-aside">
<div class="ui-input-text ui-shadow-inset ui-corner-all ui-btn-shadow ui-body-c ui-mini">
<input id="adddocFirstName" class="ui-input-text ui-body-c" type="text" data-mini="true"
placeholder="John" value="" name="adddocFirstName">
</div>
</span>