Hi ,
we have requirement to delete DeselectAll option from multiselect treeprompt by using Java Script.Can any one aware of this please help me on the same.
place a html item from the toolbox at the end on your promp page and paste this in it:
<script>
var deselectLinks = document.getElementsByTagName("a");
for (var i=0; i<deselectLinks.length; i++) {
link = deselectLinks[i];
if (link.className === "clsLink pl" && link.text === "Deselect all") {
link.style.display = "none";
}
}
</script>
This will not work on IE8 and below, not sure about IE9, but IE10 should be fine
Firefox is no problem as that is a "smart" browser and can handle CSS as it should.