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
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
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()
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(){
$(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
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
6 matches
Mail list logo