jquery insertafter() is not working in $(this) variable -
jquery insertafter()
not working in $(this)
variable.
my coding here
<select name="input_field[]" class="selectcase"> <option value="">select</option> <option value="input">text</option> <option value="option">option</option> </select>
script
$(this).change(function (){ $("<div><input type='text' name=''></div>").insertafter($(this)); });
i have many select tag , choose particular select tag. using change function, want add textbox after select tag. used insertafter()
function. not working.
dont use this
id in first line, must replaced select
:
$('select').change(function (){ $("<div><input type='text' name=''></div>").insertafter($(this)); });
Comments
Post a Comment