title: How to hide a field in SharePoint Display Form based on the field name (jQuery)?
body: <p>I have a SharePoint list with the following single line of text fields: <code>Title</code>, <code>Year</code> and <code>Type or Location</code>. I want to be able to hide the <code>Type or Location</code> table row in the default display form. I know that I should create a JavaScript script and put it in Content Editor web part inside DispForm.aspx. </p>
  
  <p>I am not fluent with jQuery syntax, thus I need help with the code, i.e. I don't know how to reference the table row which contains <code>Type or Location</code> field and its value. Here's what I've done so far, but it doesn't work: </p>
  
  <pre><code>jQuery(document).ready(function($) {
     $("input[title='Type or Location']").closest("tr").hide();
  });
  </code></pre>
  
  <p>I know that the <code>"input[title='Type or Location']"</code> part is incorrect; at least I think it's that. Could anyone help me out? Thank you.</p>