User:TMyhres/mydocuments

{| cellpadding="10" cellspacing="5" style="width: 95%; background-color: inherit; margin-left: auto; margin-right: auto" ! style="background-color: #262626; border: 1px solid #777777; -moz-border-radius-topleft: 8px; -moz-border-radius-bottomleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 8px;font-family: papyrus,helvetica,verdana;color: #fff;font-size: 1.5em;" colspan="2" | TMyhres - My Documents and Study Notes/Work.
 * style="background-color: #959595; border: 1px solid #777777; -moz-border-radius-topleft: 8px; -moz-border-radius-bottomleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 8px;" colspan="2" |
 * style="width: 100%; background-color: white; border: 1px solid #777777; vertical-align: top; -moz-border-radius-topleft: 8px; -moz-border-radius-bottomleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 8px;" rowspan="2" |
 * style="width: 100%; background-color: white; border: 1px solid #777777; vertical-align: top; -moz-border-radius-topleft: 8px; -moz-border-radius-bottomleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 8px;" rowspan="2" |
 * style="width: 100%; background-color: white; border: 1px solid #777777; vertical-align: top; -moz-border-radius-topleft: 8px; -moz-border-radius-bottomleft: 8px; -moz-border-radius-topright: 8px; -moz-border-radius-bottomright: 8px;" rowspan="2" |

Javascript Challenges

 * Challenge #4 - Feedback on this one would be appreciated! The challenge asked for a is_valid variable but I had a lot of trouble trying to figure out the logic for that so I settled for an OR condition. I would like to figure out other methods of working this problem.

Javascript Challenge #4
Javascript Challenge #4 Reference



function clearFields{ document.getElementById('fullname').value=""; document.getElementById('streetaddr').value=""; }

function checkForm{

if (document.getElementById('fullname').value == "" || document.getElementById('streetaddr').value == "") {	if (document.getElementById('fullname').value == "") {document.getElementById('nameerrormsg').style.display = "inline";} else {document.getElementById('nameerrormsg').style.display = "none";}

if(document.getElementById('streetaddr').value =="") {document.getElementById('addrerrormsg').style.display = "inline";} else {document.getElementById('addrerrormsg').style.display = "none";}

return false; }

else return true;

}



.errormsg{color:red;}


 * 1) nameerrormsg{display:none;}
 * 2) addrerrormsg{display:none;}

 Refresh  Personal details Full name:  Please enter your name above

Street Address:  Please enter your street address

