Creating $("<select>", { attribute object }) isn't recognizing the attribute object
$(document).ready(function() {
var mselector = $("<select></select>", {
'alt': 'ROLLOVER TEXT',
'multiple': 'multiple',
'click': function() {
alert('in click');
return false;
}
});
mselector.appendTo('body');
});
The SELECTor shows up in the document but it's not MULTIPLE, no ALT text, no CLICK event handler.
What am I missing?