Sometimes the seemingly easiest pieces of code can end up giving you trouble. This morning I was working on a project where I wanted to display the text (not the value) of a selected radio button. In the end it was very simple. I added a label to my radio buttons and used the following line of code. $('input[name=myname]:checked + label').text();...
Friday, 4 March 2011
Subscribe to:
Posts (Atom)