> is there any way to get the value 123 straight from div?
yes, just apply a jQuery selector to the response content and get whatever you need. In this example: $('#a', res).text(); OR $(res).find('#a').text(); You can also try with $.load that allows you to specify a jQuery selector in the URL.