click event using data attribute | Community
Skip to main content
Adobe Employee
June 14, 2021
Solved

click event using data attribute

  • June 14, 2021
  • 2 replies
  • 1498 views

Hi all,

 

<td class="cmp-modal-downloads__col--action" data-asset-share-id="download-archive" data-asset-share-download-id="61a36495-c979-4900-95a4-08d9a2e0f506">

 

<a href="page link" class="ui positive primary right labeled icon button">
Download
<i class="download icon"></i>
</a>
</td>

 

how to do click event using "data-asset-share-id" attribute of download button which is inside table tag so that I can use other values which is inside td tag?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Varun_Shakya

Try this selector

$("[data-asset-share-id='download-archive']") to get the click event on attribute

2 replies

Varun_Shakya
Community Advisor
Varun_ShakyaCommunity AdvisorAccepted solution
Community Advisor
June 14, 2021

Try this selector

$("[data-asset-share-id='download-archive']") to get the click event on attribute

Adobe Employee
June 14, 2021

@varun_shakya I have used this selector but still click event isn't happening.

Varun_Shakya
Community Advisor
Community Advisor
June 14, 2021
Try these selectors