title: Hide a checkbox if it contains the same data-name as clicked element
body: <p>I have an image with a data-name and a checkbox with a matching data-name. If I click on the image, I want the matching checkbox to hide. </p>
  
  <pre><code>$( "body" ).on("click", "#dbpic", function() {
      var picName = $(this).data("name");
      $('input[name="pics[]"]:contains('+picName+')').hide();
  </code></pre>
  
  <p>I am trying to do it with "contains" but I don't think this is the right way to do it or rather I don't know how to achieve this. </p>