• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
disable/hide button using condition in controller

#1
how to disable.hide one submit button (Register) in the controller

My query should be like this

 $query = $this->db->query("select count(*) as cnt from student where brcode=$brdata and sem=$semester and inst_code=$inst_code");
        $row = $query-> row_array ();
        $max_id = $row ['cnt']; 
        $max_id1 = (int) ($max_id);
        $cntt = $max_id1;
      

       
        if ( $cntt > 0 )
        {
          Disable button Register how?
        }
        else
        {
enable button Register }
Reply


Messages In This Thread
disable/hide button using condition in controller - by kvanaraj - 07-10-2018, 10:46 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.