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
Insert Script from the command prompt
Perl script taking too long
Select Date Range or leave blank
ASP.NET client side printing.
PL/SQL Procedure to insert CLOB data into Oracle Table
Extend the size of my boot partition
open a window using javascript
Windows Updates failing on SBS 2008 - WSUS installed on machine
Is there a backup/disaster recovery solution that doesn't cost a fortune?
restore from DB?