title: How to use Javascript to check whether a value of a column in a Sharepoint list is either empty or null?
body: <p>So far I can retrieve the list based on a string I pass and even the column names but I can't figure out how to get the values of a specific column. Here is what I have so far.</p>
  
  <pre><code>function GetFieldList()
  {
    var listname = document.getElementById("ListName").value;
    var ctx = SP.ClientContext.get_current();
    this.web = ctx.get_web();
    ctx.load(this.web);
    this.list = web.get_lists().getByTitle(listname);
    ctx.load(this.list);
    this.fields = this.list.get_fields();
    ctx.load(this.fields); 
    ctx.executeQueryAsync(Function.createDelegate(this, this.onQuerySucceeded), Function.createDelegate(this, this.onQueryFailed));
  }
  </code></pre>
  
  <p>Btw I'm using SharePoint 2010.</p>