function from on:press not firing
<p>I am trying to call a function from a on:press event and for some reason, it is not firing. I am using flexigrid and am passing the correct parameters to the function so it should respond. Can anyone spot an error with this or offer some debug advice. Thanks</p>

<pre><code>function editbox(com,grid) {

    if(com == 'Edit') {
      if( $('.trSelected').length&gt;0 ) {
        $("#boxeditform").dialog('open');
      }
    }
    else
    {
        alert('you must select a row');
    }
}
</code></pre>
