dev_marshell08
dev_marshell08

Reputation: 1101

How to refresh selectors with different id at the same time?

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

Answers (1)

domdomcodecode
domdomcodecode

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

Related Questions