I have this function written:
<script type="text/javascript">
function getStartDate(value) {
$.post("gSearch.php", {dateSearch:value}, function(data){
$('#results').html(data);
)};
}
</script>
and this piece of HTML:
<input id="startdate" name="startdate" type="text" onkeyup="getStartDate(this.value)">
but I get this in my console in Chrome; can any one help me as to why?
Uncaught ReferenceError: getStartDate is not defined
(anonymous function)gReport.php:172
onkeyup
The brace was not closed properly, or was that a typo ?