javascript - Local Storage and radio buttons -


i'm trying store radio buttons value in local storage function if checked. storing last value in list, "3". please see fiddle: http://jsfiddle.net/3u7xj/148/

something this?

if (!$(this).is(':radio') || this.checked) {    $(this) = value;    } 

i assume mean "oppcat" radio buttons. here's how value of radio button checked oppcat group:

survey['oppcat'] = $('input[name=oppcat]:checked').val(); 

see https://stackoverflow.com/a/596369/759610


Comments

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -