خرید بک لینک

Vote count: 0

I have an index.php page that holds and loads all the content so it wont be neccessary to load to other pages and everything happens dynamically. So lets say i have a div in the index.php:

<div id="content"></div>

and i have a full content.php file that holds most of the divs/pages:

<div id="cont1">something :
   <div id="iercont1"><a href="#">Dynamic click</a>
   </div>
</div>
<div id="changeiercont1">
   <img src="images/pic.jpg" />
</div>

so far so good but the jQueryAjax script isnt working in index.php where it should manipulate the divs from content.php. This is the script that loads onclick event the divs in #content from index.php and its working perfectly:

$("#content").fadeOut("slow",function(){$("#content").load("content.php #cont1");$("#content").fadeIn();});

But when it loads this content from the content.php and when i click the link text nothing happens because of the another script in index.php that isnt working properly:

$(function () {
    $("#iercont1").click(function (e) {
    e.preventDefault();
        $("#iercont1").load("content.php #changeiercont1");
    });
});

I think the browser isnt holding the loaded div from another page but only the #content from its own(index.php)

asked 35 secs ago

برچسب: نویسنده: استخدام کار تاريخ: جمعه 20 فروردين 1395 ساعت: 5:11

صفحه بندی