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

Popular posts from this blog

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -