Wednesday 15 September 2010

How to trigger a jQuery on ajax? -


I have a question about jQuery ..

I have clicked after success An AJAX function is:

  var rowdiv = '#DiamondSetting'; $ (Rowdiv) .hide (); $ Ajax ({& quot; Table type = "100%" range = "0" cellpadding = $ 3. "cellpacing =" 0 "> <<  "& Gt; & lt; img src =" ../ content / images / loading_row.gif "alt =" updating "/> gt; & lt; / td & gt; & lt; / tr & gt; & lt; / Table & gt; ');}, // when the show is loaded, when the link is clicked fully: function () {// $ (updated) .html (assigned);}, / / ​​load Showing is happening when the process is complete success: function (html) {// Therefore, if the data is retrieved, it should be html // $ (updated iv) .html (HTML) Store; // Show HTML inside. $ (Rowdiv) .hide (); $ (rowdiv) .fadeIn ("slow"); $ (rowdiv) .html (html); // Post after a special metal $ ('Disabled', true) $ ('input [id = metal0]') .prop ('check', correct). Triggerhandler ('click'); $ ("# metal 0"). $ (" # Romantic "). Tie ('click');}});   

As you can see, after success:

What do I want when I click on a link with id- id = "romantic", id =

However, I did not trigger ID = "romantic".

Every time I go to the page, checkbox = "metal 0" will be checked and id with id.

So when I reload the page, jQuery still triggers on it ..

How can I trigger jQuery and delete it after reloading page?

Thank you ..;)

ID < Code> $ ('# metal0') can be written as

then it is $ ('input [id = metal0]') / code>

Disabled The next setting of the property does not mean that the event will not be removed. You can search for off method Are

  $ ("# metal0") closed. ("Click"); / / If you use this event on   

this will undo event handler // This line does not make any sense

  $ (" # Romantic ") .bind ('click on');   

You consider this event to be binding but no click handler is associated in it.

No comments:

Post a Comment