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.
A frequently asked question goes something like this: "I am running a long process in the background and I want to alert my client when the process finishes. How can I send a message to the browser?" Unfortunately, the short answer …
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)