January 20, 2011
Jquery for Hiding/Showing Div tags
var prevTag = null;
var prevAid = null;
function ShowAnswer(id, aID) {
if (document.getElementById(aID).innerHTML == 'View" ) {
document.getElementById(aID).innerHTML = 'Hide" ;
}
else if (document.getElementById(aID).innerHTML == 'Hide') {
document.getElementById(aID).innerHTML = 'View';
}
$("#" + id).show("slow"); //Shows the Tag
if (prevTag == id && prevTag != null) {
$("#" + prevTag).hide("slow"); //Hides the Tag when we click on same div tag for more than 1 time.
prevTag = null;
prevAid = null;
}
else if (prevTag != null) {
if (document.getElementById(prevAid).innerHTML == 'View') {
document.getElementById(prevAid).innerHTML = 'Hide";
}
else if (document.getElementById(prevAid).innerHTML == 'Hide') {
document.getElementById(prevAid).innerHTML = 'View';
}
$("#" + prevTag).hide("slow");
prevTag = id;
prevAid = aID;
}
else {
prevTag = id;
prevAid = aID;
}
}
Subscribe to:
Post Comments (Atom)
Migrate SharePoint 2010 Infopath to SharePoint Online
Below are the steps to follow to migrate the Infopath data to SP Online.
-
In the SharePoint 2010 environment: 1. Stop the “Windows SharePoint Services Timer” service. To stop the service: a. Open the “Star...
-
Below are the steps to follow to migrate the Infopath data to SP Online.
-
To split a Nintex content database to enable one-to-one content for each, please follow below steps Create a new Nintex Workflow cont...
No comments:
Post a Comment