I have a select list that is created on a .click event. It looks like this:
$('<select class="selectStatus" onChange="statusSubmit()"/>')
.attr('name', 'status')
.append('<option>Pick one</option>', '<option>Open</option>', '<option>Full</option>', '<option>Canceled</option>')
.appendTo(this);
In my main styles.css file I added this:
select .selectStatus {
width:700px;
padding:0px;
background-color: green;
}
Shouldn't the css be applied to this select list once it's created?
inspect elementmethod to see if the CSS is acting on the<select>typically you can find issues with typos or spaces.