I am wanting to bind a input field that is generated into the page using ajax.
I have tried a number of different jQuery codes and none of them give any type of success.
Here are the codes I have used:
$('#bookingcoupon').bind('input', function(){});
$(document).on('bind', '#bookingcoupon', function(){});
$('body').on('bind', '#bookingcoupon', function(){});
$('.divname').on('bind', '#bookingcoupon', function(){});
None of which works
When I use a click listener using:
$('.divwrapper').on('click', '.clickbutton', function(){});
This works fine, it just does not like the bind version of the on() function.
Any advise would be appriciated :)