私は次のhtmlマークアップを持っています:
<select id=gender>
<option value=''>Please select</option>
<option value='m'>male</option>
<option value='f'>female</option>
</select>
シンプルな html dom パーサーを使用して値を設定したい - これが私のコードです - これは動作しません:
$combo = $el->find("#gender",0);
$combo->value = "m";
私も$combo->setAttribute('value', 'm');
成功せずに試しました
何か案は?
ありがとう