The "onsubmit" statement is not called:
<form action="index.php" method="post" onsubmit="return validateSearchKeyword()">
<input class="text_search" id="text_search" name="text_search" type="text" value="search" onfocus="if (this.value=='search') this.value = ''" onBlur="if (this.value=='') this.value = 'search'" />
</form>
This is my validation function:
function validateSearchKeyword()
{ alert ('sad');//for testing purposes - this alert is not showed
if (document.getElementById('text_search').value==""){creatediv('divWarnSearch','You must supply a value', '120px', '250px');return false;}
}
The function creatediv is working great with other forms, so the problem is not that one.
Any ideas? Thanks