Re: [jQuery] button value change

2009-11-11 Thread Joe Moore
David, Here's one way, using the toggle event (really a click event, check out: http://docs.jquery.com/Events/toggle#fnfn2fn3.2Cfn4.2C...) Test Page $(function() { $('a.detailLink').toggle( function(event) {

[jQuery] button value change

2009-11-11 Thread David pr
Hello, I had an More details $(this).text($(this).text() == 'More details' ? 'Hide details' : 'More details'); and on click I changed the text from more to hide I had to change the How do I change the value text on click ? David