html - jQuery ajax find data not working in IE8 -
i using jquery submit post form data. jquery returns data.
in alert gets info through ajax.
now issue want display div gallery html. that
<form action="" method="post" name="view_all" id="view_all"> <input type="hidden" name="viewmoreimages" value="viewmore" /> <input type="submit" value="load more" name="viewall" id="submit" class="b1"/> </form> <div id="gallery_cnt"></div> jquery(function(){ jquery( "#view_all" ).submit(function( event ) { <?php $site_url = site_url();?> var viel = jquery('#submit').val(); jquery.ajax({ data: jquery("form#view_all").serialize(), type: 'post', success: function(data) { var j = jquery(data).find("#gallery_cnt").html(); alert(j); jquery('#gallery_cnt').html(j); } }); event.preventdefault(); });});
for ie8 value of var j returning undefined while works fine in other browsers.
need help display ie8.
any help appreciated.
i think getting wrong. seek one..
<form action="" method="post" name="view_all" id="view_all"> <input type="hidden" name="viewmoreimages" value="viewmore" /> <input type="submit" value="load more" name="viewall" id="submit" class="b1"/> </form> <div id="gallery_cnt"></div> jquery(function(){ jquery( "#view_all" ).submit(function( event ) { <?php $site_url = site_url();?> var viel = jquery('#submit').val(); jquery.ajax({ data: jquery("form#view_all").serialize(), type: 'post', success: function(data) { var j = jquery(data).find("#gallery_cnt").html(data); alert(j); jquery('#gallery_cnt').html(j); } }); event.preventdefault(); }); });
jquery html ajax internet-explorer-8 find
No comments:
Post a Comment