<select name="ORDER_PROP_14" id="ORDER_PROP_14"> <option value="24">Afghanistan</option> <option value="48">Nederland</option> </select> <?php if ( isset($arUser['PERSONAL_COUNTRY']) || !empty($arUser['PERSONAL_COUNTRY']) ) { ?> <?php if ( $arUser['PERSONAL_COUNTRY'] != 0 ) { ?> $("#ORDER_PROP_14 option[value=<?=$arUser['PERSONAL_COUNTRY']?>]").prop('selected', true); $("#ORDER_PROP_14").siblings('span').html(<?=$arUser['PERSONAL_COUNTRY']?>); <?php } else { ?> $("#ORDER_PROP_14 option[value=48]").prop('selected', true); $("#ORDER_PROP_14").siblings('span').html(48); <?php } ?> <?php } else { ?> $("#ORDER_PROP_14 option[value=48]").prop('selected', true); $("#ORDER_PROP_14").siblings('span').html(48); <?php } ?> I tried using this code but it seems to be no used.
$( "#ORDER_PROP_14 option:selected" ).text(); Any help would be much appreciated.