0

I'm using this plugin, see my fiddle here.

My problem is the method itemAdded is not working on newly added input.

$('input').on('itemAdded', function(event) {
     alert('added'); //doesn't work on newly added input
})

How to bind it the with body tag?

Vidya Sagar
  • 1,699
  • 3
  • 17
  • 28
tony yew
  • 51
  • 5
  • 3
    Try `$(document).on('itemAdded','input', function(event) {` – Guruprasad J Rao Aug 17 '15 at 09:05
  • The code necessary to replicate your issue should be **in** the question, not just linked (not even to jsFiddle). External links rot, and people shouldn't have to go off-site to help you. You can include the code in code blocks and link to a fiddle *as well*, or better yet, just use Stack Snippets (the `<>` toolbar button) to create a live demo here on site. – T.J. Crowder Aug 17 '15 at 09:05
  • But the fiddle you gave works fine.. I am getting the alerts.. By saying _My problem is the method itemAdded is not working on newly added input._ what does you actually mean? – Guruprasad J Rao Aug 17 '15 at 09:07

0 Answers0