Hi all,
This is a pretty old topic and I think it may no longer work the same... Or I'm doing something wrong (this is the most probable of the both).
I'm trying to hide a radio button in an array
The button I'm trying to hide is the following in my page source:
This is the script I am using:
What am I doing wrong? I tried the 'alert' test just to be sure that my javascript is on and that worked...
Thanks in advance for your help!
This is a pretty old topic and I think it may no longer work the same... Or I'm doing something wrong (this is the most probable of the both).
I'm trying to hide a radio button in an array
The button I'm trying to hide is the following in my page source:
<!-- answer_td -->
<td class="answer-cell-3 answer_cell_A1 answer-item radio-item text-center radio">
<input
class="radio"
type="radio"
name="783318X281X2223SQ001"
value="A1"
id="answer783318X281X2223SQ001-A1"
onclick="checkconditions(this.value, this.name, this.type)"
aria-labelledby="label-answer783318X281X2223SQ001-A1"
/>
<label for="answer783318X281X2223SQ001-A1" ></label>
<!--
The label text is provided inside a div,
so final user can add paragraph, div, or whatever he wants in the subquestion text
This field is related to the input thanks to attribute aria-labelledby
-->
<div class="visible-xs-block label-text" id="label-answer783318X281X2223SQ001-A1">
Very Good </div>
</td>
<!-- end of answer_td -->
This is the script I am using:
<script type="text/javascript" charset="utf-8">
$(document).ready(function() {
$('input.radio[name="783318X281X2223SQ001-A1"]').attr('hidden', 'hidden');
});
</script>
What am I doing wrong? I tried the 'alert' test just to be sure that my javascript is on and that worked...
Thanks in advance for your help!