ajax

ajax

hello all,

greetings from me

guys i have a problem with below script.....


function send_inquiry() {
$('#loader_img').show();
$.ajax({
type: "POST",
url: "<?php echo base_url();?>ajax",
data: { action: "product_model.product_inquiry", 
name: $('#name').val(), 
email: $('#email').val(), 
phone: $('#phone').val(), 
address: $('#address').val(), 
country_id: $('#country_id').val(), 
country: $("#country_id option:selected").text(),
inquiry_type: $('#inquiry_type').val(), 
note: $('#note').val(),
pin: $('#pin').val()}
}).done(function( data ) {
$('#img_captcha').remove();
eval('var data=' + data);
if(data.error != 1) {
// $('#frminquery').reset();
$('#btnSave').hide();
$('#btnClose').show();
}
$('#loader_img').hide();
$('#inquiry_result').html(data.msg);
$('#captcha_area').append('<img id="img_captcha" src="<?php echo ASSET_PATH; ?>captcha.php" style="width:25%;">');
});
return false;


when the script processing it shows me like below

Uncaught SyntaxError: Unexpected end of input
    at Object.<anonymous> (cart:839)
    at c (jquery-1.10.2.min.js:4)
    at Object.fireWith [as resolveWith] (jquery-1.10.2.min.js:4)
    at k (jquery-1.10.2.min.js:6)
    at XMLHttpRequest.r (jquery-1.10.2.min.js:6)

any explaination and solutions??

thanks for your time and i appriciate it.

udin