To have check all option (alernate method) using javascript
<_pre _lang="_jscript"><_script _language="_javascript">_function _SelectAllCheckboxes(_spanChk){ _// Added as ASPX uses SPAN for checkbox _var oItem = spanChk.children; _var _theBox= _(spanChk.type=="checkbox") ?spanChk : spanChk.children.item[0]; _xState=_theBox.checked; _elm=_theBox.form.elements; _for(_i=0;_i<_elm._length;_i++_) _type="=" checked="_xState;">
reference: http://www.codeproject.com/aspnet/SelChkboxesDataGridView.asp
Monday, August 20, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment