Microsoft
Software
Hardware
Network
Question : Function needs help with if this or this then that
Hi, I've got this function here that I need to work on 2 levels.
function subit_confirm_update(){
if((document.getElementByI
d("savesta
tus").inne
rHTML=='')
or (document.getElementById("
savestatus
").innerHT
ML=='Saved
')){
alert("No update needed.");
return false;
}
}
though this doesn't work, would anyone provide a working function for this example?
Answer : Function needs help with if this or this then that
Could you please mention what your code is trying to do (exact reqquirements) at first place?
var value = document.getElementById("s
avestatus"
).innerHTM
L;
if ( value.length == 0 || value == "Saved")
{
alert("No update needed.");
return false;
}
Random Solutions
SBS capabilities with 50 user firm
SBS 2008 move data feature crashes
Cant get vista to view my web site correctly!
Explain plan in Oracle
DBGrid's content into email
Code in SQL 2000 not parsing/running in SQL 2005 Query Analyzer
Check colum A for names in the name matches a sheet name in any workbook then copy to the sheet where we are quering from.
Blackberry not activinating on BES
Need solution to convert Java 1.6 application into C# project
Unable to Search Empty Folders