I want to add a hidden input after some element. I am using this code:
$("<input type="text">").insertAfter(".addProduct");
It doesn't work. But if I replace to it works.
$("<span>ddd</span>").insertAfter(".addProduct");
It works. Help me.
Thank you.