I'm trying to create a <select> list with jQuery. Here is what I have:
$('<select />')
.attr('name', 'location')
.val("Location 1")
.appendTo(this);
The value .val("Location 1") does not appear in the drop down list. I'd like to have 3 locations in my list. How do I do this?