Jump to content
php.lv forumi

<select>


leisure

Recommended Posts

Tauta, plz paliidz...

 

Karo4 mana ideja taada: No db ieguustam <select> veertiibas tur piemeeram... 1.2.3.4 utt... kaaadas 20.

 

Talak, ir 20 rindas tabulaa ar peedeejaa ailiitee ievietotu taadu pashu <select>...

 

Gribu panakt to, lai piemeeram 3. rindinjaa izveeloties 9 select variantu, tad 9 variants pazuud no visiem 20 selektiem... un taa uz priekshu, lidz paliek tikai 1 variants... to var dabuut gatavu? ja var tad kur man rakt, vai tas ir sarezhgjiiti man, ja es ar javascript tikpatkaa nenodarbojos?

 

Paldies!

Link to comment
Share on other sites

Nu ja pareizi sapratu (kautkgan īsti nespaprotu tā jēgu, tad:

<select onchange="this.remove(this.selectedIndex)">
<option value="1">1</option>
<option value="2">2</option>
<option value="3">3</option>
<option value="4">4</option>
...
</select>

Link to comment
Share on other sites

×
×
  • Create New...