
get id this jquery
Para pegar o ID do elemento atual (this) com jquery basta usar:
A variável currentId, neste exemplo, irá carregar o valor do elemento.var currentId = $(this).attr('id');
Para pegar o ID do elemento atual (this) com jquery basta usar:
A variável currentId, neste exemplo, irá carregar o valor do elemento.var currentId = $(this).attr('id');