Having trouble with checking whether an input field exists. This is the code I made for it but aint working:
if(document.replyForm.replyMessage) {
var myField = document.replyForm.replyMessage;
}
if(document.guestbookForm.guestbookMessage) {
var myField = document.guestbookForm.guestbookMessage;
}
if(document.postForm.postMessage) {
var myField = document.postForm.postMessage;
}
Could anyone help me out?
Thanks in advanced!
EDIT: err fixed it already again, had to only check whether FORM exists, couldn't check both form and field it seems =]. Thanks anyway.


Sign In
Create Account


Back to top









