Calling Jquery within / inside a Shadowbox -


I have a simple shodobox called by jquery:

  $ (' # StatsButton '). Click (Function () (this content = $ ('# userstats') .html (); Schrodobucks.Open ({content: this content, player: "html"})}}   < P> I have a div, click in that  $ ('# userstats')  object:  
  $ ("#submitPosition") click (function ( E) {Warning ('test');});   

But when I click, nothing happens. Both of the above functions are wrapped in their own document drawn blocks. In the beginning of the script, Shadowbox.init I call and it works great, this is just that it ignores the events inside jQuery. Can anyone help?

Brief: Basically I have a shadebox I want to have jQuery and HTML Player, I want jQuery to do the required work within that HTML Player.

If you are loading content dynamically in the container, you should use the click () C while the current #submitPosition should use as well as will bind because the material inside jQuery to bind the object on () . Code>.

For example:

  $ ('body'). ('Click', '#submitPosition', function (e) {warning ('test');});   

In addition, using several elements on a page with the same ID is not a good practice.



Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -