Skip to content
Advertisement

Editing form with jquery-confirm

I’m using jquery-confirm, and I need to capture the name of the element which i clicked to edit.

jQuery and jQuery-confirm

JavaScript

PHP

JavaScript

SCRIPT

JavaScript

Obs: Where It’s written “$ Name of the product”, should appear the name of each product that I click.

Advertisement

Answer

You can use this.$target to get a tag which is clicked then using .closest('tr').find('td:eq(0)').text() get first td content.

Demo Code :

JavaScript
JavaScript
User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement