<input type="button" value="Expand ALL" onclick="ProcessAll(this)" style='color:white;background-color:darkgreen;font-weight:bold;'/>
<script>
function ProcessAll(btnobj)
{
if(btnobj.value=="Expand ALL")
{
expandAllData();
btnobj.value="Collapse ALL";
}
else
{
collapseAllData();
btnobj.value="Expand ALL";
}
}
function expandAllData() {
$("img.ms-commentexpand-icon").click();
}
function collapseAllData() {
$("img.ms-commentcollapse-icon").click();
}
</script>
<script>
function ProcessAll(btnobj)
{
if(btnobj.value=="Expand ALL")
{
expandAllData();
btnobj.value="Collapse ALL";
}
else
{
collapseAllData();
btnobj.value="Expand ALL";
}
}
function expandAllData() {
$("img.ms-commentexpand-icon").click();
}
function collapseAllData() {
$("img.ms-commentcollapse-icon").click();
}
</script>
2 Questions:
ReplyDelete1. Do you know how to change the mouse cursor when you hover over the button?
2. Is it possible to target one Web Part? I have multiple on my page with groupings, but I am wondering how to target 1 of them.