-2
我想根據複選框狀態隱藏和顯示輸入框。在我的情況下,這兩個jquery追加如下:顯示基於複選框狀態的輸入框由jquery追加
$container.append('<li><label><input type="checkbox" style="float:left"</label>
<input type="text" name="couple_answers['+index+']" id="couple_answers_'+index+'" maxlength="500" class="input-item form-control text-field"></li>');
請建議我任何可能性。
感謝您的回答@Ghanshyam巴瓦,它是在HTML中顯示的代碼。但我想要做的一樣,而附加的jquery – Naresh
@Naresh,檢查更新的片段的HTML。可能是你想要的! –