[jQuery] Re: Convert MooTools to jQuery

2009-09-26 Thread Dave Methvin
So it looks like you're trying to fade in "#europe" as someone types into the input. The opacity value should go from 0 to 1, though, so I'm not sure why the values above 1 are there. Also, I would think you'd want to set the initial state based on the input field. If all of that is true, somethin

[jQuery] Re: Convert MooTools to jQuery

2009-09-25 Thread KeeganWatkins
hi GonzoDesign - this is a straight port. i'm not that familiar with mootools, so one aspect that may be off is the selection of elements. i'm assuming $ ('europe') returns the element with an ID of "europe" but if not you'll need to change the ported selectors. you can read up on how jQuery impl

[jQuery] Re: Convert MooTools to jQuery

2008-09-05 Thread Karl Swedberg
hmmm. Israel, looks like you started two threads for this question. Also, did you notice that my code and Brandon's are nearly identical? Mine: $(document).ready(function() { $('.Boite') .find('div').hide() .end() .find('> a').click(function() { $(this).parent().find('div').toggle()

[jQuery] Re: Convert MooTools to jQuery

2008-09-05 Thread israel.hayes
Thank you very much to both of you, I'm in your debt ;) I prefer real method tho! hehe Have a good day, - Israel - $(function(){ $('.Boite').each(function(){ $(this).find('div').hide(); }); $('.Boite a').click(function(){

[jQuery] Re: Convert MooTools to jQuery

2008-09-05 Thread real
$(function(){ $('.Boite').each(function(){ $(this).find('div').hide(); }); $('.Boite a').click(function(){ $(this).parent().find('div').toggle(); }); }) On Sep 5, 1:38 pm, "israel.hayes" <[EMAIL PROTECTED]> wrote: > Hi, > > I was us

[jQuery] Re: Convert MooTools to jQuery

2008-09-05 Thread Brandon Aaron
This should be the equivalent in jQuery code. $(document).bind('ready', function() { $('.Boite') .find('div').hide().end() .find('a') .bind('click', function(event) { $(this).parent().find('div').toggle(); }) }); -- Brandon Aaron On Fri, Sep 5, 2008 at 12:38 PM, israel.hayes <[EMAIL PROTECTED]>wr