[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan
I have a list like: ADD Content 1 ADD Text 2 I want to open a dialog, which are the divs, when the ADD is clicked. But I only want the dialog that is in the same li tag as the Add button being clicked. I though the following might work, but it's not right: $(".add").click(function () { $(thi

[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan
I have a list like: ADD Content 1 ADD Text 2 I want to open a dialog, which are the divs, when the ADD is clicked. But I only want the dialog that is in the same li tag as the Add button being clicked. I though the following might work, but it's not right: $(".add").click(function () { $(thi

[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan
I have a list like: ADD Content 1 ADD Text 2 I want to open a dialog, which are the divs, when the ADD is clicked. But I only want the dialog that is in the same li tag as the Add button being clicked. I though the following might work, but it's not right: $(".add").click(function () { $(thi

[jQuery] Getting the correct Selector code

2008-06-15 Thread Dan
I have a list like: ADD Content 1 ADD Text 2 I want to open a dialog, which are the divs, when the ADD is clicked. But I only want the dialog that is in the same li tag as the Add button being clicked. I though the following might work, but it's not right: $(".add").click(function () { $(thi