I need help making a select element appear like a span under certain conditions. The CSS class I currently have works with input boxes, but not with dropdowns. Is there any advice on how to style the select element to look like a span without actually replacing it?
Here is the jQuery function:
function makeReadOnly(context) {
$('input, select', context).each(function() {
$(this).addClass('readOnlyInput');
});
}
And here is the corresponding CSS:
.readOnlyInput
{
border-width: 0;
background-color: Transparent;
text-align: right;
}