Link to home
Start Free TrialLog in
Avatar of error77
error77

asked on

Javascript code - missing tag ?

Hi all,

I've got a missing brace or bracket in this code but cannot see it.

Can anyone help please?

Here is the code:

<script type="text/javascript">
function submitdata() {
$("#ajax-form").submit(function(){$.post("submit.php",$("#ajax-form").serialize(),
            
			function(data){
			   $('#jqm').attr('src', $('#jqm').attr('src'));
              
            }
        );
        return false;
    };
</script>

Open in new window


Thanks
Avatar of rushtoshankar
rushtoshankar
Flag of United States of America image

You have 3 open '{' - One near submitdata, submit(function(){ and the last one in function(data){

but only have two close

          }
        );  --> you might have seen this as ' } '
        return false;
    };
ASKER CERTIFIED SOLUTION
Avatar of leakim971
leakim971
Flag of Guadeloupe image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial