I'm trying that when I change into drop-down, the input box should be focused and value of input box should be selected. I used
$("#text_qty").focus(function () {
this.select();
});
but it is not working .
This is my input box
<input type="number" name="text_qty" id="text_qty" value="0" onKeyUp="cal_price()" onChange="cal_price()" min="0"/>