On 11 Feb, 20:41, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hello, > after selecting a value in my select field and clicking on a button, I > call a function (please see the code below)
not sure what you have to do, but if you want to use the response data of an ajax request, you must specify 'data' as a function argument. load() uses POST so something like this: > $('#newDoc_name') > .load('index.php/get/etc..', > // since you're using GET you don't need those {} > function(data){ > $('#newDoc_select').val(data); > }); assuming the response is just the name you need :)