<div>
<input type="checkbox" >nbsp;
<input type="text" name="name" >
</div>
function oBtAddChoice() { // 获取多选是否选中 var is_addChoice = $("#addChoiceSelect").is(':checked') if (is_addChoice==true){ document.getElementById("input_name").style.display = ""; } }