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
Manual sbs03 -> sbs08 Migration
Server Returns 404 Error when publishing through WebDAV
Adding Columns to ASP.Net Gridview Control
Outlook 2010 with Exchange 2000?
EXIM mail manager (LAMP) permissions auto-reset how to prevent resetting for a specific file
Problem with Win 7 Pro 32bit unattended setup
Regarding INOTES in Lotus 8.5
How to enable auditing logs on checkpoint firewalls
calculate age in mysql
Oracle Materialized View refresh - Question