jQuery set ajax return value in form field
Posted
by stef
on Stack Overflow
See other posts from Stack Overflow
or by stef
Published on 2010-03-08T22:12:19Z
Indexed on
2010/03/08
22:21 UTC
Read the original article
Hit count: 453
I've always used ajax to load() the contents of a DOM element but now I'm trying set a form field value with the result of the following query:
$('#form_field').load(base_url+'ajax/get_yearly_fee', {
'q_value': $(this).val(),
'client_id': $("#fee_client_add").val()
});
What's the best way to do this?
© Stack Overflow or respective owner