[jQuery] Re: jquery not working on content loaded by ajax

2009-09-28 Thread black.horizons
SOLVED: $("a.market").live('click', function(event) { alert( $(this).attr("id") ); }); easy! On Sep 28, 4:05 pm, "black.horizons" wrote: > I've got the following code: > > $(document).ready(function() { >         $("a.mar

[jQuery] jquery not working on content loaded by ajax

2009-09-28 Thread black.horizons
I've got the following code: $(document).ready(function() { $("a.market").click(function (event) { alert( $(this).attr("id") ); }); }); it works on a test link that i have in a div Test But when I load new data (it's loaded by a menu in an iframe, and the data l

[jQuery] Re: calculate value of input based on two selects

2009-03-05 Thread black.horizons
gt; >     1 >     2 >     3 > > > >     1 >     2 >     3 > > > > > Then the jQuery could be: > > $("#select1, #select2").change(function() { >      $("#total").val( Number($("#select1").val()) * Number($ > (&q

[jQuery] calculate value of input based on two selects

2009-03-05 Thread black.horizons
hi guys, just wondering how i would update the value of an input box to be the value of the sum of two select (drop down boxes) plus 1. i.e. (select1.value * select2.value) + 1 I need to do this everytime either of the two fields are updated. my pseudocode is: select1.onUpdate{ total.valu

[jQuery] Re: Tablesorter in Tabs

2009-02-12 Thread black.horizons
g with each other > > On Feb 10, 2:46 pm, "black.horizons" wrote: > > > I've got tablesorter 2.0 sitting in tabs and it's not working, has > > anybody got any idea why? I've got tablesorter 2.0 also sitting > > outside tabs (on a different page) an

[jQuery] Re: Tablesorter in Tabs

2009-02-10 Thread black.horizons
Alex b...@g.com John g...@b.com On Feb 10, 8:31 pm, MorningZ wrote: > Got a public-facing example page? > > I've got the tablsorter plugin inside ui

[jQuery] Tablesorter in Tabs

2009-02-10 Thread black.horizons
I've got tablesorter 2.0 sitting in tabs and it's not working, has anybody got any idea why? I've got tablesorter 2.0 also sitting outside tabs (on a different page) and it's working perfectly, so i'm fairly sure that tablesorter 2.0 isn't broke! thanks in advance! alex