Wednesday, 15 February 2012

php - Add class not working after ajax call -


Add Class Works Before Ajax Call But Not After AJAX Call?

  $ Ajax {Type: "POST", url: "../ajax/basket.php", data: {planproductId: productIDVal, verb: "addToBasket"}, success: function (theResponse) {if (theresponse.indexOf (" $ ("#Notifications"). $ ("# NotificationsLoader") Empty (); Return;}}});   
  .error-box {background: # Ffecec url ('../img/error.png') No-repeat 10px 50%; range: 1px solid # f5aca6;}    

If your status is wrong - it should be like this ( assuming #notifications being typed ) < Pre> if (theResponse.indexOf ("

  • ")

  • No comments:

    Post a Comment