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

css - I want to align grid in center -

Contact Form PHP Email Script -

python - SWIG function not printing output -