Bear Bibeault wrote:I'm not sure what you're asking, but (assuming you are using jQuery), you can click a button under script control with the .click() method.
Thanks but how can I reference the button on the calling page. Remember the calling table has many rows each having a save button(set up with class and custom attribute). I need to reference the calling rows button within the called dialog.
jQuery has many methods to relate elements by relationships such as siblings and parents.
Within a table, one one of the most useful methods I've used is closest(), which finds the closest parent that matches the selector. So let's say we're in a handler for something that was clicked inside a table row (so the target is this). We can use:to locate the enclosing row (<tr>), and then find anything we want within that scope. Just replace some-selector with a selector that identifies the element to be selected.
Bear Bibeault wrote:jQuery has many methods to relate elements by relationships such as siblings and parents.
Thanks Bear.
I was thinking that you had shown me how to reference a control by using a selector comprised of the class name where the custom attribute equals a declared value.
Bear I think I found my answer. But first when I run into a challenge I first try all I know which doesn't take long then I post my question. I don't just sit and wait on an answer but keep trying things. I don't mean to waste any of your time and most of the time I cannot figure it out anyway.