how to access .inc file using jquery .get request

The jQuery Get method ($.get(URL)) loads data from the server by using the HTTP GET request.

As mentioned in the $.ajax chapter, this is a short form of jQuery ajax method. The URL part is where a page or file name e.g. text file may be specified.

$.get(Drupal.settings.basePath+’select_sub_cat?cat_id=’+cat_id+’&main_cat_id=1′, function(data) {
$(‘select#edit-caliber-select’).html(data);

});

Was this article helpful?

Related Articles