SaMay Posted April 27, 2009 Report Share Posted April 27, 2009 <script type="text/javascript">function show(objSel) { document.getElementById('display').innerHTML = objSel.options[objSel.selectedIndex].value; } </script> <tr><td>Kkas </td><td id="tds"><select name="kkas" onchange="show(this);"> <option value="Teksts1">Teksts</option> <option value="Teksts2">Cits teksts</option> </select></td></tr> <tr><td id="display" colspan="2"></td></tr> Sveiki. Nepieciešams, lai tas Teksts1 iekš display parādās jau pie lapas ielādes. Ceru ka kāds izlīdzēs. :) Quote Link to comment Share on other sites More sharing options...
0 bubu Posted April 27, 2009 Report Share Posted April 27, 2009 window.onload eventā izsauc to savu show funkciju ar korektu argumentu. Quote Link to comment Share on other sites More sharing options...
Question
SaMay
Sveiki. Nepieciešams, lai tas Teksts1 iekš display parādās jau pie lapas ielādes.
Ceru ka kāds izlīdzēs. :)
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.