getting false return when sending data to a php script

getting false return when sending data to a php script

I'm trying to send some data to a php file with my jquery script.
However it doesn't seem to work, as I'm getting a false return whatever I'm trying.


Can anyone tell me what I'm doing wrong here?


Please note, the php file isn't doing much.. it's just for testing purposes.

  1.   <script language="javascript">
  2.   $(document).ready(function() {
  3.    
  4.    $('select').change(function() {
  5.    
  6.    if ($(this).val()=='delete'){
  7. var parent = $(this).closest('tr');
  8. $.ajax({
  9. type: 'post',
  10. dataType: 'html',
  11. url: 'process.php',
  12. data: '&delete=' + $(this).attr('id'),
  13. beforeSend: function() {
  14. parent.animate({'backgroundColor':'#00B2EE'},300);
  15. },
  16. success: function() {
  17. parent.fadeOut(300,function() {
  18. parent.remove();
  19. });
  20. },
  21. error: function(){
  22.               alert("something went wrong");
  23.             }
  24. });        
  25.    }

  26. });
  27.   
  28.   });
  29.   </script>

  30. and my php file contains:

  31.   <?php
  32.   if (isset($_GET["delete"])<>''){
  33. echo 'cool!';  
  34.     return;  exit;
  35.    
  36. }

  37.   ?>