Updated $(this).attr("value") by $(this).val()