日期:2014-05-16  浏览次数:20409 次

如何访问元素中自己添加的属性
<td class="include_if_edited" ondblclick="ECSideUtil.editCell(this,'input','ec_edit_template_input')" cellName="groupsAsString" ></td>

如何修改这个cellName的值 
或者如何传递一个JS对象 <input type="botten" onclick="save('','','')">
这个input框是动态创建的,save方法传递的值其中有一个对象。

上面的问题求解答谢谢

------解决方案--------------------
JScript code

 document.getElementById('').setAttribute('groupsAsString', '');

------解决方案--------------------
用getattribute获取属性,不过ff中好像不能直接用,最好是用jquery
------解决方案--------------------
用jquery的().attr就可以修改了
------解决方案--------------------
探讨

用getattribute获取属性,不过ff中好像不能直接用,最好是用jquery

------解决方案--------------------
getAttribute&&setAttribute