Switch button active/inactive |
I've been looking very much here on the site about my problem, but I only found answers about the html part of the problem. So I was wondering how to operate the switch buttons and pick up the current result and in turn change it.
This is my simple sample code: PHP Code: <td><?php echo $row['id']; ?></td> PHP Code: $('.btn-toggle').click(function() { How do I move? The result to show the current status is: $row->['status'];
Bootstrap Toggle
jQuery Toggle Button Plugin For Bootstrap - Bootstrap Checkbox What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
Unfortunately I'm not very practical, do not see the PHP part to send the modification on / off and then also show the current result, there are some online tutorials? I really found little on google
Code: Execute a JavaScript when a button is clicked: What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
|
Welcome Guest, Not a member yet? Register Sign In |