select tag with html code example Example: html select tag attributes var status = $('#listbox-taskStatus option:selected').attr('status');