title: Need some ideas on creative DOM grabbing for a confirmation box
body: <p>What this little script does is it creates a context menu (right click) that has two options, delete and edit. Ideally it would just ask to confirm to delete, because it is not the end of the world if you accidentally get taken to the modify screen. But in either case, I would like to create some kind of unique message to each situation to display to the user.</p>
  
  <pre><code>$("#myDiv").contextMenu({
  
    menu: 'myMenu'
  
  },
  
    function(action, el, pos) {    
    var yesno = confirm(    
    'Are you sure?'
     //you would like to delete? 
     //you would like to edit
  
  );
    if (yesno == true) { 
      window.location(action);
    }
  
  });
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;div id="myDiv"&gt;
  
     Right click for options.
  
  &lt;/div&gt;
  
  &lt;ul id="myMenu" class="contextMenu"&gt;
  
    &lt;li class="edit"&gt;   &lt;a href="some/edit/page"&gt;   Edit   &lt;/a&gt;&lt;/li&gt;
    &lt;li class="delete"&gt; &lt;a href="some/delete/page"&gt; Delete &lt;/a&gt;&lt;/li&gt;
  
  &lt;/ul&gt;
  </code></pre>
  
  <hr>
  
  <p>I am not sure of what the accepted methodology would be in this case to grab some information about the actions, because the last thing I want is to write some super convoluted code when there is an easier way to do it.</p>
  
  <p>This code seems moderately flexible, so I can add some more divs, or something like that. However, I would like to avoid a tag soup situation.</p>