Hi Mario!

You might try this:

jQuery(document).ready(function() {
 $("#fragment-2 .pager .pager-list > a").each(
   $(this).attr("href", this.href + '#fragment-2');
 );
 // other calls to be fired afterwards
});

untested as usual

-- Marc



Mario Moura schrieb:
Hi Folks

I wrote:

$("#fragment-2 .pager .pager-list > a").attr("href", function() {return this.href + ('#fragment-2')});

When I insert into my Firefox Console and run works fine.

When I tried insert into my pages this Jquery function didnt run. I tried everything (after Jquery script, after and before php functions etc)

I am reporting this bug to see if somebody can tell me why.


<script type="text/javascript">
jQuery(document).ready(function() {
$("#fragment-2 .pager .pager-list > a").attr("href", function() {return this.href + ('#fragment-2')});
 });
</script>

Regards

--
Mário Moura

Reply via email to