I am thinking that it is possible in JQuery.
I have some javascript code that makes DOM objects that fly in response to user tasks some of them are in a specific composition - the container always has the same "square" attribute.
What I would like to do, an "X" has been made every time, I have to execute the same piece of javascript code. In that code the "onclick" event will be added to that DOM object.
Unfortunately, I can not just enter the code that provides onclick in the document. Ready (), since the object that binds it after the document was made to fly for long periods of time. Ready () has been executed.
Has JQuery allowed you to set up binding continuously, which will automatically be bound to one type of DOM object, even if it is generated on the fly?
This was covered by 'live', 'representative', or sometimes 'bind' . These have now been replaced with 'on', but here are some warnings like:
Comments
Post a Comment