I'm working with divs
When a image is clicked, I clone the first criteria, clear it, and
append to the main div.
It goes to the bottom, its ok so far, no problem.
But, in some criteria, if in a combobox is selected a specific item, it
will trigger the above clone code, know it need to insert bellow that
criteria, not in the bottom!!
I had tested index() after I send my msg to the group, in some moments
it bring a valid number aparently valid to my eq(), then I can use with
after()
Tomorrow I will continue that study, maybe I'm in the right path :)
motob escreveu:
Can you post a little more info? Maybe some of your html code that
goes along with what jquery is working with? Are you trying to add a
new criteria text box to a search form when #new-criteria is clicked?
Are you working with table cells or divs?
On Feb 12, 3:14 pm, Feijó <[EMAIL PROTECTED]> wrote:
How can I get the index of one of my class? I'm reading all in docs.jquery.com
and found nothing
$("#new-criteria").click(function(){
$last = $('#thefilter .qz-tablefield:eq(1)')
.clone(true);
index= 1;// here, how to get the index of "this"?
$('#qz-criteria .qz-tablefield:eq('+index+')').after($last);
});
ThanksFeijó