Hello, after selecting a value in my select field and clicking on a button, I call a function (please see the code below) But $('#newDoc_name') is an input, I would like to set his value with the result of 'index.php/get/s_document_loadName/ Can you help me? Thank you
$('#newDoc_selectok').click(function(){ if($('#newDoc_select').val() == 0) alert("Please select a document in the list"); else { $('#newDoc_docinfo').fadeIn('Slow'); $('#newDoc_name').load('index.php/get/ s_document_loadName/'+$('#newDoc_select').val(),{}, function(){}) } })