Hi
Have some jscript i'm trying to tweak but I'm not succeeding. Pbly because I rarely use it
I have a var declare
var btype = $("input[name=btype]:checked").val();
I also have an input field that's passed in on a submit button
<input type="radio" name="btype" id="code39" value="code39" checked="checked">
I want to just embed the "code39" and that it's checked in the statement "var btype = $("input[name=btype]:checked").val();"
Not having any luck.
I've tried
var btype = $("input[name=code39]:checked").val();
var btype = $("code39:checked").val();
and a variety of others without success.
Any help would be appreciated
Have some jscript i'm trying to tweak but I'm not succeeding. Pbly because I rarely use it
I have a var declare
var btype = $("input[name=btype]:checked").val();
I also have an input field that's passed in on a submit button
<input type="radio" name="btype" id="code39" value="code39" checked="checked">
I want to just embed the "code39" and that it's checked in the statement "var btype = $("input[name=btype]:checked").val();"
Not having any luck.
I've tried
var btype = $("input[name=code39]:checked").val();
var btype = $("code39:checked").val();
and a variety of others without success.
Any help would be appreciated