jquery - Add code inside a function load() -
hi have following function load()
$("#div").load("page.php", { prodctfilter: $("#producto").val() });
i want add following code inside load()
('#div a').click(function(e) { ("#div").on("click", "a:not(.minlink)", function ( e ) { ("#div").load($(this).attr("href")); e.preventdefault(); }); });
and this
$("#div").load("page.php", { prodctfilter: $("#producto").val() ('#div a').click(function(e) { ("#div").on("click", "a:not(.minlink)", function ( e ) { ("#div").load($(this).attr("href")); e.preventdefault(); }); }); });
the problem way showing example not work gives me error sintax
i want achieve when running inside page load () activate other features make response of links display within tag div
the question easy, have not knowledge , not know how want code
you close solution. consulting jquery.load documentation reach destination.
for , have summarized solution you:
$("#div").load("page.php",{ prodctfilter: $("#producto").val() },function(){ ('#div a').click(function(e) { ("#div").on("click", "a:not(.minlink)", function ( e ) { ("#div").load($(this).attr("href")); e.preventdefault(); }); }); });
Comments
Post a Comment