title: Html imput type="image" onclick event
body: <p>Friends I have a problem
  We need to make a user control that has the ability to delete itself, I made it but we did not clear the mechanism for removal, it should be tied to a nice picture. Code that is attached to the frame is given below, but not</p>
  
  <pre><code>        $('#delete').bind('click', function () {
  
      alert('test');
          var urlA = '&lt;%=Url.Action("DeleteMessage","Ticket")%&gt;';
          $.ajax({
              url: urlA,
              type: 'POST',
  
              data: { idMessage:$(this).parents("div:first").find("input[name='MessageID']").val(),idticket:$('#TicketID').val() },
              success: function (data) {
                  alert(data);
              }
          });
      });
  </code></pre>
  
  <p>But when I write this, but to throw me to the homepage what's wrong</p>
  
  <pre><code>    $('#delete').live('click', function () 
  </code></pre>