I'm quite new in JQuery.

If I have a HTML structure like this:
<dl>

<dt><label>abc</label></dt>
<dd><input type="text" name="text" />
<span>this is text</span></dd>

<dt><label>abc</label></dt>
<dd><input type="text" name="text" />
<span>this is text</span></dd>

</dl>

I want to get the input and span object. Actually, I can do that separately.
But I think there is a simple way. And I have no idea about that.

$.each($("dd"),function(i) {
// i'm stuck here. if i'm using $("dd input") it will get all the input
tags.
// I just want the input tag on each iteration.
});

Thanks in advance.
Didats.

Reply via email to