[jQuery] Extracting content from a div?

2010-01-09 Thread youradds
Hi, I need to try and extract the following from a STRING (not the current page); div class=error ul liGast Email der Rezension kann nicht den Wert 'undefined'

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Massimo Lombardo
If the string pattern is always the same -- i.e. nothing but the inner text changes -- then you can simply use a regular expression. I think this will help you: http://www.regular-expressions.info/examples.html -- Massimo Lombardo Linux user #437712

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Leonardo Balter
And you can simply use .text() method. This will return you only the text inside your selected element. Do you also need tips on getting the child elements on that div? -- At, Leo Balter http://leobalter.net Blog técnico: http://blog.leobalter.net

Re: [jQuery] Extracting content from a div?

2010-01-09 Thread Andrei Eftimie
I'm suspecting youdo an ajax call, you get a page, but only need a part of it injected into your own. There might be a better solution, but this should work. data = '...div class=errorulliGast Email der Rezension kann nicht den Wert 'undefined'speichern./li/ul/div...'; data =