Checking inside of the div tag with innerhtml in javascript?

Envy

New Member
hi fellowsim trying to make a registration form with ajax validation check.validation check is OK. i make it show a cross.png image when there is a problem about a field on the form.but what i wanna do next is to not let visitors apply the registration form when there is problem.i tried to check for errors by\[code\]if(document.getElementById('username_error_icon').innerHTML!='<img src="http://stackoverflow.com/questions/3636446/cross.png" width="15" height="15" />'){document.form1.submit(); }\[/code\]which didnt work :/im open to suggestionplease help :/
 
Back
Top