-
javascript操作Select标记中options集合
摘要:先来看看options集合的这几个方法:options.add(option)方法向集合里添加一项option对象;options.remove(index)方法移除options集合中的指定项;options(index)或options.item(index)可以通过索引获取options集合的指定项;javascript代码如下:[代码]注意到上面创建option项时,使用了Option()...
阅读全文
-
一个不错的日历控件
摘要:1function atCalendarControl(){ 2 var calendar=this; 3 this.calendarPad=null; 4 this.prevMonth=null; 5 this.nextMonth=null; 6 this.prevYear=null; 7 this.nextYear=null; 8 this.goToday=nu...
阅读全文
|