Odczyt wartość pola option na podstawie selectedIndex i wstawienie do pola hidden
<select name="stanowisko_sel" onchange="this.form.stanowisko.value=this.options[this.selectedIndex].text">
<option value="1">Kierowca</option>
<option value="1">Budowlaniec</option>
</select>
<input type="hidden" name="stanowisko" size="50" maxlength="50">

Sprawdzenie czy w querystringu istnieje parametr
var search=unescape(window.location.search);
if(search=='') {
} else {
var re = new RegExp('&b=(.?)','ig');
var tmp=re.exec(search);
var re_b='';
if(tmp!=null) {
re_b=tmp[1];
$('#right td select[name=b]').val(re_b);
}
}

var div = document.createElement('div');
div.className = "box";
div.id='test';
div.innerHTML = '[Niedrzwica Duża]';
div.setAttribute('index', 100);
function send(url, elem) {
var value;
var form = document.forms['form'];
if (typeof(elem)=='object')
value=elem.value;
else
value=document.getElementById(elem).value;
var s_value=form.elements['s'].value;
if(s_value=='szukaj' || s_value=='') {
location.href=url;
return false;
}
else {
form.action=url;
form.submit();
return false;
}
return true;
};
Wywołanie np.
var url = 'http://www.wolakorybutowa.pl'
send(url, 'pole1');

<script type="text/javascript">
<!-- function get_idx(_this_) {
alert(_this_.id);
var idx;
idx=_this_.parentNode.parentNode.firstChild.getAttribute('d_idx');
alert(idx);
idx=_this_.parentNode.parentNode.firstChild.
nextSibling.
getAttribute('d_idx');
alert(idx);
return false;
}
//--> </script>
<style>
.a { width: 200px; border: 1px solid; height: 40px; float: left; }
.b,.c { border: 1px solid; width: 40px; height: 40px; float: left; }
</style>
<div d_idx="1"><div d_idx="2">test 123456</div><div d_idx="3">123</div><div><a id="test1" href="#" onClick="get_idx(this)">usuń</a></div></div>

Ziana z-indexu n większy powoduje wyciągniecie warstwy wyżej nad wszystkie inne.
z-index:1111; z-index:11111
document.getElementById('nazwa').style.zIndex=11111;

function szukaj(wartosc)
{
var elem_lista = document.getElementsById('lista');
var znaczniki = elem_lista.getElementsByTagName('a');
cnt = znaczniki.length;
for(i=0; i var tekst = znaczniki.item(i).firstChild.nodeValue;
tekst = elem.name;
if(tekst.indexOf(wartosc)!=-1) {
znaczniki.item(i).style.color='red';
znaczniki.item(i).focus();
}
}
}
szukaj('Polska')
<div id=”lista”>
<a href=”#”>Polska gola</a>
</div>

<script type="text/javascript">
function add() {
var text = document.createTextNode("Warszwa, Lublin");
var bold = document.createElement("b");
var el = document.getElementById("mapa");
bold.appendChild(text);
el.appendChild(bold);
}
</script>
<div id="mapa"></div>
<script type="text/javascript">add() </script>

<html>
<head>
<title> czas </title>
<script language=”JavaScript”>
<!–
function test() {
var czas = ’12:14:38′;
var re = new RegExp(„([0-9]{2})\:([0-9]{2})\:([0-9]{2})”,”ig”);
tmp=re.exec(czas);
if(tmp!=null) {
var obiekt_property = „”;
for(j in tmp)
obiekt_property += j + ” „+ tmp[j] + „\n”;
alert(obiekt_property);
}
}
//–>
</script>
</head>
<body onload=”test()”>
</body>
</html>

function test2() {
document.getElementById(„submit”).disabled=true;
}
<input type=”button” value=”test” onclick=”test2()”>
<input type=”submit” id=”submit” value=”Mapa” onclick=”test()”>
Strona zawiera sposoby oraz kody źródłowe pokazujące rozwiazanie napotkanych problemów