JSFiddle - React, Tailwind, and code Playground

HTML

<form name="FormOfStudents" id="FormOfStudents" action="" method="POST">
               <table>
       
             
             <input type="button" value="Edit1" class="action edit" data-id="<?php echo $rcrid; ?>" />
             <input type="button" value="Delete1" class="action delete" data-id="<?php echo $rcrid; ?>" />
             
          
                   </table>      
             </form>

<form name="CEditForm  " id="CEditForm" action="" method="POST">
               <table>
             
            
             <input type="button" value="Edit2" class="action edit" data-id="<?php echo $rcrid; ?>" />
             <input type="button" value="Delete2" class="action delete" data-id="<?php echo $rcrid; ?>" />

                   </table>      
             </form

JavaScript

$(#FormOfStudents).(input).click(function(e) {
alert("button in form students clicked")
})

$(#CEditForm).(input)click(function(e) { 
  if ($(e.target).hasClass('action'))
alert("button in CEditForm clicked"+$(e.target).val)
})