title: jquery code is not working in safari browser
body: <p>I have this code in my js file</p>
  
  <pre><code>$.post(storeurl+"/ajax/ajax-action.php", {action: 'removefromsession', id:did, pid:pid}, function(result){
      if(result){
          obj.closest("span").remove();
      }
  });
  </code></pre>
  
  <p>Here is the <a href="http://jsfiddle.net/bow4m3xz/" rel="nofollow">fiddle</a>.</p>
  
  <p>This code is working in firefox and chrome, but not working in safari, even i did not get any error in console of safari. Is there any solution to make working this code in safari?</p>