How to grab label value from checked option with jQuery?

What you have works, it just needs a tweak like this.

What you have works, it just needs a tweak like this: var levels = $('input:checked + label'). Map(function() { return $(this).text(); }).get(); You can test it here. .get() afterwards just returns the base array afterwards...I think your root issue is you're declaring radio1_val but setting levels.

Radio1_val was completely from out of space. Although still having a problem. Your function works perfectly, but when I'll add group name it still not giving me results for checked box.

Any idea why this is not happening?. Changed my original post – Dom Nov 20 '10 at 15:22 @Dom - It should be: $('inputname="formradio1":checked + label'), but what you have works for me: jsfiddle. Net/nick_craver/xrdNt/1 which browser is giving you issues?

– Nick Craver? Nov 20 '10 at 15:26 it's FF and to be honest I didn't test it for any other just yet. Can I meet some difficulties with different browsers?

– Dom Nov 20 '10 at 15:28 @Dom - You shouldn't if it's quoted, but if you do have problems link me the page here and I'll take a look...out of town this weekend but I'll check it out as soon as I'm back – Nick Craver? Nov 20 '10 at 16:48.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions