It's an error in the docs. Use .prev() not .previous().

On 10/27/06, Olaf Bosch <[EMAIL PROTECTED]> wrote:
I will use the snippets from the Docu, how i must handle with This?

example:

<script type="text/_javascript_" src=""><script type="text/_javascript_">
$(document).ready(function() {
var HHH = $("p").previous(".selected");
alert (HHH);
});
</script>
</head>
<body>
<div><span>Hello</span></div>
<p class="selected">Hello Again</p><p>And Again</p>
<div>

this give me *$("p").previous is not a function*

found on Site "A" here at http://jquery.com/api/ under
jQuery prev ( String expr )

Sorry, Noob

--
Viele Grüße, Olaf

-------------------------------
[EMAIL PROTECTED]
http://olaf-bosch.de
www.akitafreund.de
-------------------------------

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/



--
Yehuda Katz
Web Developer | Wycats Designs
(ph)  718.877.1325
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to