$(this).css("background-color", "red");
For normal input I style the background RED within my for each input loop which works fine.
But when its a select it doesnt seem to work. The jquery mobile select image still stays the same!
Im using JQuery + JQuery Mobile.
How do i force it to change? Even if its just adding a border?
My solution for this was
Getting the parent of the element(which is the select tag) and adding the required class to the DIV instead.