text: Q:
  
  How to find HTML element with a data attribute which contains a specific value?
  
  I am using data attributes in HTML and now I want to get it.
  I have attribute like this:
  <div class="row hidden" data-party-registration-source-type-id="3,4">
  
  Suppose I have a value "3". I want to search for the data attribute that contains "3";
  How can I do this?
  
  A:
  
  You can easily achieve this with jQuery attribute contains selector that:
  
  Selects elements that have the specified attribute with a value
    containing a given substring.
  
  https://api.jquery.com/attribute-contains-selector/
  
  This is the most generous of the jQuery attribute selectors that match
    against a value. It will select an element if the selector's string
    appears anywhere within the element's attribute value.
  
  example:
    $( "div.row[data-party-registration-source-type-id*='3']" )
  
  