JQuery Toggle Button that sets/resets database record

Posted on 2010-08-22
Medium Priority
Last Modified: 2012-05-10
Hi All,
I want to display a toggle button on a webpage, which changes colour and displays the words ON (Green button)  or OFF (Red button), dependant on the state of a database record behind the toggle button - with the database record toggling between on/off every time the button is pressed.
Many thanks
Question by:Jamie
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2

Accepted Solution

bugmenotcom earned 1000 total points
ID: 33496354

Author Comment

ID: 33496370
Hi bugmenotcom - many thanks for your reply. Do you know of any coded examaples anywhere, as it is all a bit confusing for me currently!

Author Closing Comment

ID: 33548545
Answer did not cover all areas of question.

Featured Post

Don't Cry: How Liquid Web is Ensuring Security

WannaCry is just the start. Read how Liquid Web is protecting itself and its customers against new threats.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I have answered several questions lately that were solved utilizing the power of jQuery's AJAX functions, so I thought I would write an article demonstrating the ease of use. Why should I use jQuery as opposed to regular JavaScript? Now I know…
Introduction If you're like most people, you have occasionally made a typographical error when you're entering information into an online form.  And to your consternation, the browser remembers the error, and offers to autocomplete your future entr…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question