Jquery switch Button Label/Value On/Off?
Hi Guys,
I need a Solution to switch the Button Value/Text when pressed.
Code so far:
<input type="button" class="my_button" name="buttonName" value="Off" /> <p>Such interesting text, eh?</p>
<script>
$(".my_button").click(function () {
$(".my_button").val("On");$("p").toggle("slow");
});
That switches once, But how how to switch the Value to Off/On?
Any Ideas?
THX
Dieter Asman