开发者

javascript does not load with the jquery post method?

开发者 https://www.devze.com 2023-02-02 06:11 出处:网络
Greeting to all !!!!! am new to jquery and using it well... it sounds good... the problem is when i using ajax post method and append to the original page, the javascript i loaded in the original pa

Greeting to all !!!!!

am new to jquery and using it well... it sounds good...

the problem is when i using ajax post method and append to the original page, the javascript i loaded in the original page is not working the response(appended page some abc.php)...

how to use those ? please h开发者_开发问答elp me

success:

   function(html)
   {
    $(html).hide().appendTo('#postcomnt').slideDown('slow');
    $('.post_txt_area').val("");
    //alert(html);
   }


It's not quite clear, what are you trying to do.

Are you trying to dynamically load another javascript code and make it work? Then, look here: JQuery to load Javascript file dynamically

Are you trying to bind events to elements that are loaded dynamically? Then take a look at jQuery live() method: http://api.jquery.com/live/

0

精彩评论

暂无评论...
验证码 换一张
取 消