about 1 year ago
<div class="form-check"> <input class="form-check-input" type="radio" name="q1" id="q1a"> <label class="form-check-label" for="q1a"> A story teller </label> </div> <div class="form-check"> <input class="form-check-input" type="radio" name="q1" id="q1b" > <label class="form-check-label" for="q1b"> A problem solver </label> </div>
In the above code the name of the radio button is q1 which I can access by,
sq1 = request.POST.get('q1',"off") in views.py
but, I want to access it specifically by id
so if I use
w1a = request.POST.get('q1a',"off") it is giving me no value
HOW CAN I GET IT BY ONLY ID?
Starting with Chrome version 45, NPAPI is no longer supported for Google Chrome. For more information, see Chrome and NPAPI (blog.chromium.org).
Firefox and Microsoft Internet Explorer are recommended browsers for websites using java applets.
Chrome Version Support
Are you sure, you want to delete this comment?
Sign up using
0 Answer(s)