I have an HTML element, Now I have to select the element using the data attribute with value contain double quotes or single quotes using jQuery or javascript.
jQuery('.test-sp[data-value=""test"]').trigger('click');
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<span data-value=""test">Test lppp</span>
My data value is "test. I require to select the div/span using the data attribute which has a value containing quotes.