Hi, I have a problem with the tilde selector - either I don't understand how it works, or there's something wrong with it...
Let's say we have such HTML: <html> <head><script src="http://code.jquery.com/jquery-latest.js"></ script></head> <body> <p>a</p> <p>b</p> <div>c</div> <p>d</p> </body> </html> $('p ~ div') returns the div, $('div ~ p') returns the last p. But $ ('p ~ p') doesn't return anything... I thought it should return the "b" and "d" paragraphs, because they're both siblings of the 'a' paragraph, right? If it's by design that it doesn't match two elements of the same kind, maybe it should say that in the documentation?... Best regards, Jakub Suder