[jQuery] Re: show/hide div on select change

2009-11-20 Thread KeeganWatkins
also, just as a head's up... even when you store numbers as the "value" attribute on an tag, they are interpreted as strings in javascript. so, from your example above, you might also consider switching your condition to: // Compare as string instead if ($("#id_status").val() === '6'){ $('div

[jQuery] Re: show/hide div on select change

2009-11-18 Thread mtuller
Thanks. On Nov 18, 1:50 pm, Charlie Griefer wrote: > You're missing a $ on this line: > > ('#id_status').change(function() { > > Change to: > > $('#id_status').change(function() { > > unsolicited word of advice... run firebug :) > > > > > > On Wed, Nov 18, 2009 at 11:44 AM, mtuller wrote: > > I