tags:

views:

70

answers:

1

Hi there,

is it possible to select within a select (chaining) with my jquery.

I basically have this, once i have cloned it, there are 2 more DIVs inside the new clone which i need to change as well usign jquery, these embedded divs have IDs, i could just put it on a new line and reselect using $

But thought jqery allows chaining, but not show about select in an already selected jquery expression.. heres my code

        var obligatoryElement = $('#obligatory-template').clone();

        $(obligatoryElement).attr('id', 'accessory-' + obligatory);

        $('#obligatory-template').after(obligatoryElement);

any ideas?

A: 

There is the find method:

$('#some-element').find('a')
Blixt
thank you, i add .find onto my exisiting query..
mark smith