我在<ie:menuitem
页面上有id=zz15_Upload
项。我想在<ie:menuitem
代码后添加另一个</ie:menuitem>
,但在onMenuClick="window.location = 'Allsame add extra at end of the string &MultipleUpload=1';"
上更改(添加)
我想用jQuery做这件事。请帮忙。
代码:
<ie:menuitem id="zz15_Upload" type="option" iconSrc="/_layouts/images/MenuUploadDocument.gif"
onMenuClick="window.location = '/CR/ttt/_layouts/Upload.aspx? List=%7BF6047376%2D0318%2D4A50%2DA290%2D7EAF74A23C4E%7D&RootFolder=%2FCR%2Fttt%2FShared%20Documents&Source=http%3A%2F%2Ftestqa%2Este%2Eorg%2FCR%2Fttt%2FShared%20Documents%2FForms%2FAllItems%2Easpx';"
text="Upload Document" description="Upload a document from your computer to this library." menuGroupId="2147483647"></ie:menuitem>
答案 0 :(得分:1)
把它放在你的onMenuClick事件
上// create menuitem first
var menuitem = ...;
$('#zz15_Upload').after(menuitem);
希望这有效。你的问题有些模糊......
答案 1 :(得分:0)
这应该让你开始,这是一项微不足道的任务,通常不会在论坛上提出......
http://api.jquery.com/append/
http://api.jquery.com/add/
http://api.jquery.com/category/manipulation/
答案 2 :(得分:0)
试试这个:
var clonedObj= $("#zz15_Upload").clone();
divname.append(clonedObj);