We have an external js file loaded on our static html page with a jQueryUI dialog opening a url with jQuery.load()
from a button click. Inside the ajax content returned is a handful of input
elements, all number
type. We need to bind the keydown
and change
events to the number inputs, however it's not binding since the .bind()
is happening before the elements are in the DOM from the ajax result. We know about .on()
but having an awfully hard time wiring it up. I know we're missing something simple; any suggestions?
Basic Fiddle recreation: http://jsfiddle.net/jbwebtech/wvufLket/