如何判断哪一个文本框被选中 <input type=text onfocus=alert('选中')>给每个<input>加onfocus事件 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 1。wealth不对2。我就是不想在每个text加onfocus事件阿,最后加for(;;){oneElt.attachEvent("onfocus", FocusText);} <body onselectstart="meizz = document.activeElement.name">这个变量 meizz 就是你选择了的那个文本框的 nameobj.type == "text"obj.type == "radio"obj.tagName == "INPUT"obj.tagName == "SELECT" for(;;){ if(obj.type == "text") { oneElt.attachEvent("onfocus", FocusText); }}在文本框onfocus时调用FocusText,在FocusText()中如何判断哪个文本框被选中? 在文本框onfocus时调用FocusText,在FocusText()中如何判断哪个文本框被选中?event.srcElement如何判断是否select?event.srcElement.tagName="SELECT" 抓取问题 救急啊!!!如何判断一个输入框输入的是不是整数或者实数!!! 页面元素对象转成字符串的问题 动态增行的表格实现autocomplete 如何取得 input 中被 highlight的文字? 如何在页面的frame窗口滚动时更加平滑,不产生跳跃 Asp和JavaScript结合循环、语法等问题求解。。。百度地图 showModalDialog如何关闭状态栏?? 急!!!vc开发的activex软件在htmld调用! 请问:在JAVASCRIPT里面,怎样才能点回车,产生一个TAB事件. 一个框架问题 请高手指点! 行家勿笑!!整数->字符
2。我就是不想在每个text加onfocus事件阿,最后加
for(;;)
{
oneElt.attachEvent("onfocus", FocusText);
}
这个变量 meizz 就是你选择了的那个文本框的 nameobj.type == "text"
obj.type == "radio"
obj.tagName == "INPUT"
obj.tagName == "SELECT"
{
if(obj.type == "text")
{
oneElt.attachEvent("onfocus", FocusText);
}
}在文本框onfocus时调用FocusText,在FocusText()中如何判断哪个文本框被选中?