Hi,
I try to select an option with the result of an ajax request.
All my test :
the var defined as :
Thanks
Chris
I try to select an option with the result of an ajax request.
All my test :
document.getElementByName('add_result').option[value="' + items['result'] + '"].attr('selected', true);The selector named and his id is add_result
jQuery('#add_result option[value="' + items['result'] + '"]').attr('selected', true);
add_result.val(items['result']);
jQuery("#add_result").children("option").val(items['result']);
the var defined as :
add_result = jQuery("#add_result");Do you ahev any idea
Thanks
Chris