Why firebug did not find the error of these codes?
hi guys
Just wondering why firebug missed the error,
- $(function() {
- $('#submit').click(function() {
- $('#container').append('<img src="img/loading.gif" alt="Currently Loading" id="loading" />');
-
- var select = $('#select').val());
- var title = $('#title').val();
- var description = $('#description').val();
-
- $.ajax({
- url: 'submit_to_db.php',
- type: 'POST',
- data: 'select=' + select + '&title=' + title + '&description=' + description,
-
- success: function(result) {
- $('#response').remove();
- $('#container').append('<p id="response">' + result + '</p>');
- $('#loading').fadeOut(500, function() {
- $(this).remove();
- });
- }
- });
-
- return false;
- });
- });
As you can see, I intentionally put extra closing parenthesis on the line 6th just too test if firebug can catch it.
Unfortunately It did not at my end.
Any idea?
Thanks in advanced.