use chosen.val for getting the value of chosen