跳至内容

web前端,html,css,js——一然的博客

一然的博客

标签:checked

js判断复选框提示

在 2012/10/17 上张贴 由 一然

js判断复选框:

<input id=”topic”  type=”checkbox” />
<script>
document.getElementById(‘topic’).onclick=function(){
alert(this.checked);
}
</script>

张贴在js标签:checked、js、复选框

近期文章

  • 将光标移动到最后
  • linux的ubuntu版本中后台执行node,aws的ec2为例
  • javascript的归并排序
  • input等在浏览器中的默认黄色
  • npm install安装包出错”ERR windows_NT”

分类目录

  • css
  • hack
  • html
  • js
  • php
  • seo
  • 博主收藏
2023年2月
日 一 二 三 四 五 六
« 9月    
 1234
567891011
12131415161718
19202122232425
262728  

热门点击

addEventListener ajax angular checked chrome chrome 谷歌浏览器 hack css3 falsh file file修改样式 file模拟 flash form html input jquery jquery库 js margin:0px auto; 水平居中 node opacity resize safari textarea word-break word-wrap © 字体 复选框 层拖动 底层 微软雅黑 报错 拉伸 拖动 换行 文本输入框高亮 断词 无刷新 省略号 编码问题 缺少标识符 背景 谷歌引用jquery 透明 透明度

功能

  • 登录
  • 文章RSS
  • 评论RSS
  • WordPress.org
由 WordPress 强力驱动 | start主题来自Ingenious Solution.