How to get the return from the get method in a input field
Hi togehter,
i have a problem:
I want to get a variable from another site via ajax get.
Here my code:
$(document).ready(function() {
$("button:first").click(function(){
$.get("text.cfc?method=checkIBAN",
{
iban: $("#testfeld").val()
},
function(data){
$('#test').html(data);
$('#testfelder').val(data.html);
});
});
});
So I the right staff back but I want to fill the input field with this return. It doesnt work.. :-(.
The return goes to the div "test", but not in the inputfield 'testfield'.
Can you help me?
best regards