Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Don't thank us until it works! Let me know how you go, I'd be interested. IDs should just start with a letter - given that you can only have one id on any page, it would make sense to name your IDs so they are useful to you in the future, such as You might not need an id at all, unless it's com

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
Dan, another question: Why did you typed: "Also, ids shouldn't start with a number." What is the right standard? Gustavo Villa. Dan Eastwell escreveu: Hi Gustavo, this would be more semantic: Some Company Something about the company Other Company Somet

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
Thanks for reply Dan and Leonardo! I will try your suggestions! Brazilian Huges for you! Villa, Gustavo. -- SimDigital Visite nosso site: www.simdigital.com.br (15) 3012.7200 ___ jQuery mailing list discuss@jquery.com http://jquery.com/discuss/

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Oh, I forgot - remove the toggleClass call. I used it to change the formatting of my 'company names' when they were open or closed. You could write your own function to do that, of course! On 3/5/07, Dan Eastwell <[EMAIL PROTECTED]> wrote: > Hi Gustavo, > > this would be more semantic: > > >S

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Dan Eastwell
Hi Gustavo, this would be more semantic: Some Company Something about the company Other Company Something about the other company Also, ids shouldn't start with a number. I'd use this function, but I'm sure other people could do better - I'm more of a CS

Re: [jQuery] Selecting PARENT DIV

2007-03-05 Thread Leonardo K
$("div.name").click(function(){ $(this).next().toogle( function(){ $(this).show(); }, function(){ $(this).hide(); } ); }); On 3/5/07, JQuery - SimDigital <[EMAIL PROTECTED]> wrote: How could I get the ID from a parent div of my element? I think that will be the shortest path to do what i need,

[jQuery] Selecting PARENT DIV

2007-03-05 Thread JQuery - SimDigital
How could I get the ID from a parent div of my element? I think that will be the shortest path to do what i need, as described bellow: Example: Some Company Something about the company Other Company Something about the other company I'm trying to do a company list of my city.