title: jQuery Listview changing list item color
body: <p>I suck so hard at javascript - I can't figure out how to change the background color of a list item in a jquery listview...</p>
  
  <pre><code>var parent = document.getElementById('listDiv');
  
  var listview = document.createElement('ul');
  listview.setAttribute('id', 'listView');
  
  parent.appendChild(listview);
  var listItem = document.createElement('li');
  listItem.setAttribute('id', 'temp');
  var itemLink = document.createElement('a');
  itemLink.setAttribute('href', '#');
  itemLink.innerHTML = "HEYY MAN";
  
  listItem.appendChild(itemLink);
  listview.appendChild(listItem);
  
  
  $('#listView').listview().listview('refresh');
  
  //I NEED DIS SHIT TO WORK
  $('#listView').on('click', 'li', function(){
      $('#temp').css('background-color','green');   
  });
  </code></pre>
  
  <p>Everything is displayed correctly, and you can play around with it on <a href="http://jsfiddle.net/kburbach/t7NKL/" rel="nofollow">JSFiddle</a>, but either the 'click' functionality or the background color change is not working correctly. Can someone lend a helping hand?</p>