日期:2014-05-16 浏览次数:20406 次
<input type="radio" name="error" value="no" checked="checked" id="no" class="error"/>无 <input type="radio" name="error" value="yes" id="yes" class="error"/>有
<script> if(document.getElementById("no").checked==true) { document.getElementById("up").style.display = 'none'; document.getElementById("file").style.display = 'none'; } document.getElementById("yes").onclick = function(){ document.getElementsByName("error").value='yes'; document.getElementById("up").style.display = 'inline'; document.getElementById("file").style.display = 'inline'; } document.getElementById("no").onclick = function(){ document.getElementsByName("error").value='no'; document.getElementById("up").style.display = 'none'; document.getElementById("file").style.display = 'none'; } </script>
<input type="file" name="file" id="file"/> <input type="submit" name="submit" value="上传" id="up"/> <p id="description">请将报错信息的截图传上来</p>