Jquery load event on select elements loaded through Ajax -


i loading mvc partial views using ajax. jquery documentation load says

event handlers bound selected elements; must exist on page @ time code makes call .on()

that's why wont work elements loaded through ajax. know can put logic in each partial views there way or better solution have @ 1 place (in main view onto partial views loaded)

$('select').load(function () {                 $(this).somewidget();             }); 


Comments

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -