Reputation: 1101
Is it possible to refresh two selectors with diffrent id at the same time as show below ?
$('#select-choice-direction #select-choice-direction-postuser').html(xmlhttp.responseText).selectmenu( "refresh");
Upvotes: 0
Views: 41
Reputation: 2443
Use a comma to separate them. What you're doing there instead is finding children with ID select-choice-direction-postuser
that have select-choice-direction
as a parent.
Should be changed to:
$('#select-choice-direction, #select-choice-direction-postuser').html();
Upvotes: 4