I have a textbox. If selected and hit the tab key, a new line will open. This works fine so far. However, the same action doesn't work in that dynamically created textbox. Even if it has the same class which the original textbox was called on. I tried to find the explanation on the internet, but I couldn't get/understand a right answer. Could someone please help me?
$('.list').keydown(function(key){
if(key.which === 9) {
$('.ingredients_list').append('<li><input class="list" type="text"/><i><img class="remove" src="images/remove.svg"></i></li>');
}
});