質問がいくつかあり、それぞれの質問に独自のオプションがあります。質問オプション "Question Options"でテキスト領域を非表示にするコードjqueryを作成する必要があります。関連する質問の「日付、場所、単一の選択、複数の選択、オン/オフ」のラジオボタンを選択したときに選択される。ラジオボタンをクリックしたときにテキストエリアが表示されない
質問5で「複数の選択」を選択すると、「質問オプション」というラベルの付いた「テキスト領域」はその質問でのみ非表示にする必要があります。
注:2つ以上が存在するように、各<TD>
は、動的に追加されます。
<table id="field-easy-form-question-values">
<thead>
<tr>
<th colspan="2" class="field-label">Question</th>
<th>Order</th>
</tr>
</thead>
<tbody>
<tr>
<td>
<div class="" id="form-question-0">
<div class="form-item">
<label for="form-question-0" class="">Question text</label>
<input class="js-text-full" id="question-0-fielde" name="field_easy_form_question[0][field_easy_form_question_text][0][value]" value="Nombre" type="text">
</div>
</div>
<div class="" id="edit-field-easy-form-question-0">
<div class="form-item">
<label for="edit-field-easy-form-question-0" class="">Question Options</label>
<div class="form-textarea-wrapper">
<textarea class="js-text-full" name="field_easy_form_question[0][field_easy_form_question_options][0][value]"></textarea>
</div>
</div>
</div>
<div class="" id="form-question-0">
<div id="edit-field-easy-form-question-0">
<div class="panel-heading">
<div class="panel-title">Type</div>
</div>
<div class="panel-body">
<div id="edit-field-easy-form-question-0">
<div class="form-item radio">
<label for="form-question-0" class="option">
<input class="form-radio" id="type-short-text" name="field_easy_form_question[0][field_easy_form_question_type]" value="Short Text" checked="checked" type="radio">Short Text</label>
</div>
<div class="form-item radio">
<label for="edit-field-easy--field-easy-form-question-type-long-text" class="option">
<input class="form-radio" id="type-long-text" name="field_easy_form_question[0][field_easy_form_question_type]" value="Long Text" type="radio">Long Text</label>
</div>
<div class="form-item radio">
<label for="edit-field-easy-form-question-0-field-easy-form-question-type-date" class="option">
<input class="form-radio" id="type-date" name="field_easy_form_question[0][field_easy_form_question_type]" value="Date" type="radio">Date</label>
</div>
<div class="form-item radio">
<label for="edit-field-easy-form-question-0-field-easy-form-question-type-location" class="control-label option">
<input class="form-radio" id="type-location" name="field_easy_form_question[0][field_easy_form_question_type]" value="Location" type="radio">Location</label>
</div>
<div class="form-item radio">
<label for="edit-field-easy-form-question-0-field-easy-form-question-type-single-selection" class="control-label option">
<input class="form-radio" id="type-single-selection" name="field_easy_form_question[0][field_easy_form_question_type]" value="Single Selection" type="radio">Single Selection</label>
</div>
</div>
</div></div>
</td>
</tr>
<tr>
<td>...</td>
</tr>
<tr>
<td>...</td>
</tr>
</tbody>
</table>
は、助けてあなたをありがとう、私にとって仕事をいけない、あなたのコードが機能しているが、私のためのより多くの条件が必要私はあなたの指導に感謝します。 – nashCode
Np、時間を無駄にしてくれてありがとう。 – Thielicious