Показать сообщение отдельно

  #2  
Старый 20.03.2009, 13:27
rash
Guest
Сообщений: n/a
Провел на форуме:

Репутация:
По умолчанию

Цитата:
<tr class="relationship tallrow">
<td class="label">Семейное положение:</td>
<td>
<select class="select" id="status1" name="status" onchange="document.getElementById('status2').value = this.value; if (this.value == 2) {ge('preposition').innerHTML = '';} else if (this.value == 4) {ge('preposition').innerHTML = 'на';} else if (this.value == 3) {ge('preposition').innerHTML = 'с';} else if (this.value == 5) {ge('preposition').innerHTML = 'с';} if (this.value > 1 && this.value < 6) {ge('withBox').style.display = ''; ge('withBoxWrap').style.display = '';} else {ge('withBox').style.display = 'none'; ge('withBoxFooter').style.display = 'none';}" >
<option value="0">Ваше положение:</option>
<option selected="selected" value="1">Не женат</option>
<option value="2">Есть подруга</option>
<option value="3">Помолвлен</option>
<option value="4">Женат</option>
<option value="5">Всё сложно</option>
<option value="6">В активном поиске</option>
</select>
<select class="select" id="status2" name="status" onchange="document.getElementById('status1').value = this.value; if (this.value == 2) {ge('preposition').innerHTML = '';} if (this.value == 4) {ge('preposition').innerHTML = 'за';} else if (this.value == 3) {ge('preposition').innerHTML = 'с';} else if (this.value == 5) {ge('preposition').innerHTML = 'с';} if (this.value > 1 && this.value < 6) {ge('withBox').style.display = ''; ge('withBoxWrap').style.display = '';} else {ge('withBox').style.display = 'none'; ge('withBoxFooter').style.display = 'none';}" style="display:none">
<option value="0">Ваше положение:</option>
<option selected="selected" value="1">Не замужем</option>
<option value="2">Есть друг</option>
<option value="3">Помолвлена</option>
<option value="4">Замужем</option>
<option value="5">Всё сложно</option>
<option value="6">В активном поиске</option>
</select>
<span id="withBoxWrap" style="display:none">
<span id="withBox" style="display:none"><span id="preposition"></span>
<select class="select" id="with" name="with" style="margin-left:5px; width:170px;" onchange="if (this.value > 0) {ge('withBoxFooter').style.display = '';} else {ge('withBoxFooter').style.display = 'none';}">
<option value="0"> ... </option>
<option value="1">бла бла бла</option>
Вот кусок кода, что я не так сделал?
Пробовал разные способы, не получилось.