jQuery ajax success call not affecting the received elements -
jQuery ajax success call not affecting the received elements -
i'm using ajax receive info .php file , displaying on page. info received has list of divs ids "question0" "question1" "question2" , on. need success phone call alter css values these elements. here's code,
$.ajax({ type: "post", info : { testid: testid[0] }, cache: false, url: "load-test.php", success: function(data){ $(".main-section").html(data); $("#question1").css('display','none'); } }); homecoming false; }); });
the list of divs loaded onto page, css not affected, help!
i assume #question1 id homecoming load-test.php, elements not impact css after first run unless utilize class attribute instead, need pre-define style class.
jquery ajax
Comments
Post a Comment