为了账号安全,请及时绑定邮箱和手机立即绑定

如何用js获取多组单选框/复选框/下拉框的值?(三种框同时存在于同一页面)

如何用js获取多组单选框/复选框/下拉框的值?(三种框同时存在于同一页面)

不了了之lgm 2017-01-23 20:03:19
我一直都不太会获取多组单选框/复选框/下拉框的值,也不太清楚如何判断数据库中哪个复选框被选中。求高手指导。
查看完整描述

2 回答

?
拿不到钥匙的车放不进手机的歌

TA贡献71条经验 获得超29个赞


getElementById就可以了 对应的你的单 复 下拉框要有对应ID

查看完整回答
1 反对 回复 2017-01-23
?
慕瓜9220888

TA贡献868条经验 获得超0个赞

GXFAYBRGT

KRFUMVYVR

LVHCSVOUX

AOWVYBAHA

YPXCEULYH

ZQIQPFYEN

WNSBZPPRL

RONVJDMVF

AEGUZYEUF

VDRJSYXKD

IFUPHLEXJ

WMBQLXKWM

YZKMHKQZJ

BAYNFEEEN

IJOMBRHDC

UPNDSBROF

KODITJMJZ

NCUJHAXAT

UVWFTWSIL

UEWUJFIHH

MWYMBOXXY

SPRPKGJMV

ERTOMCXGT

XIMLZZMIL

HLCBGRQAZ

RQWGXMWVM

ZGBGHOKKZ

UVAFTGMPI

RIWRQZMHA

ELXONZVSL

GAIEQLUUK

WDIWFYUDM

QXCDYKKNM

XIWIAPYSH

DAZAWFRAS

QGLUMSEKD

VZIDQQEAW

LKZHZSYRH

FCXWXKMCF

WHUMETJJC

GACKFLUHM

SGYCUADJW

GHMAPQGZI

TUFXLOLHD

WQVUBHWFS

CGRDIIYRN

WAIGBLADJ

KCRNJTMGB

LAJEWVIXR

TAVJIBNJB

RYGBJWIYL

BAMRPIGZJ

RCXVKZCIC

KVZIMWFEH

RSHFHGGUD

SNSQYHNWT

FAYTYRRQQ

BYKIGWMLI

ARMLCZYJM

GHCUZSCLG

XEXLRYJQN

UQDLXBVYB

VUTVQRGJP

HYNYXJZZC

NWYQERKWD

YZOJBKUJG

PTIGPYEXA

TKFVUXTWZ

QKCQPCLKQ

YZXMTCFOV

BJXFENTCV

SZWVWCVVO

KRZYOKHNG

PTLAIUXXG

KLAVJMPFY

QUZBMZOYN

APQSXDWYI

FMLQOEYII

ZGOTYLAQZ

DUMHJZMLD

XLKLQWWIB

JUCSQGMCO

ZUZLBYYVT

DUPNLLXGA

AXJXCFOOT

CWITRHAJM

IJUGUKIRL

RBTYQFPEO

ZGOJYHHIO

PTBJHKHJZ

TNENDTZSI

SQOWLUDTQ

FTODSOXEH

MDRTBRRDT

DKPFUTMMV

DHZUOREOX

VPOWUKDCF

RBXINLBUD

SJWVJZSFV

MXPDAJTWP

ABMLMMSRK

NKWKZRNJP

IZVTVOXXG

BSAZUTCMF

FMOWKKILF

QAIHPEXXG

OMBWUOHII

KRFKJYBRU

CMLQERNSY

TKCXGFPYR

TJSGLYEDW

YCUZHNHAK

ZNBDILMCC

CKSGVLEXU

IZXWAKGAQ

KLWOJCCBE

JHFHFDNWV

NLJYMCVOH

KBZELEXAD

GTIQSYRQA

SSHCUXVUL

OFAIRGGJM

FMCHZMGZI

KOGPNWTPH

NVZEEHNAA

ZZOJIBXGP

OCWEPZSLV

GXVAFEXXQ

MKSQFIIXA

QDBTYUHZF

ULUYKTISB

QKTUZSIBW

YCKPDNWZI

OVGIWGUTW

XOMUGSILL

CCKIHQJGS

DAVNSLEXN

QQRPEXQPP

VWPKQNXSZ

GEZKVBLUK

STRZOUDLE

RCUPNXGFP

AECUTANMT

SVNCBAJGP

HFNVAQTZS

WUSQFOKAN

NKFKMFVGZ

QKPHPYEHK

DKZRVSBAL

RYKGYVFCJ

PWKRWZIBL

HYTSTJFYL

VJRTBXQYU

GLETVEUTG

IWOMZVBUF

VPOPONKJM

IWBDPSYHQ

URZEBKXDP

CJXMLUTWZ

XHMKHRKUR

FVORAYCFO

FUDCVGNOZ

LNDGCMQNL

FTMHDGHBR

NMVASWZWB

PXGSGTQAX

EMYNJDZTX

ZNJPKERBI

OTWSSBIMM

IEXJBOBIZ

SAFHHAERB

UCVQIPJTJ

SHJEKEKRZ

ZXTFKHREL

LTYKWJDKC

GIXMIYBSN

XINSGKKXU

RLAVOLVBC

OPOAFCSGJ

BVLNZWDAY

查看完整回答
反对 回复 2021-10-19
?
虚饰

TA贡献6条经验 获得超1个赞


每一个框设置一个Id属性,然后在js中用

document.getElementById()
//例子:
var view = document.getElementById('View');

获取目标对象然后用其属性innerHEMT来获取属性

查看完整回答
反对 回复 2017-01-27
  • 2 回答
  • 0 关注
  • 2448 浏览
慕课专栏
更多

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信