On Mon, May 25, 2020 at 8:07 PM Craig Russell <apache....@gmail.com> wrote:
>
> I've implemented the cancel button for the Member status row of the committer 
> display.
>
> When the (cancel) button is pressed, the canx function is invoked. What I 
> want to do here is to call dblclick on the div element so the inline form 
> disappears with no action.
>
> But how can I find the HTMLDivElement to call dblclick on? I cannot find the 
> relationship between the inline form and the div that contains the dblclick 
> event.

closest('.row')

You can use either standard DOM APIs or jQuery:

https://developer.mozilla.org/en-US/docs/Web/API/Element/closest
https://api.jquery.com/closest/

- Sam Ruby

Reply via email to