select element with data attribute inside element with data attribute code example Example: select by data attribute $('*[data-id="your_id"]');