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.
-
Take backup from the SP 2013 SQL Server. · Steps for restoring the SharePoint 2013 application DB to 2016 DB. -- Ge...
-
#Parameters $SiteURL = "<URL of the site>" $ListName = "ABCLibraryName" #Connect to the Site Connect-PnPOnline ...
-
· Take backup from the SP 2010 SQL Server. · Steps for restoring the SharePoint 2010 application DB to 2013 DB. ...
No comments:
Post a Comment