добрый день.
есть скрипт:
HTML |
<script type="text/javascript"> document.addEvent('domready', function() { var inputWord = $('demo-word'); new Autocompleter.Request.JSON(inputWord, 'cities.php?cat='+document.forms[0].qwerty.value, { 'indicatorClass': 'autocompleter-loading' }); }); </script> <form action="http://www.spanishdict.com/translate" method="get" id="form-demo"> <input type="text" name="demo-word" class="text" id="demo-word" /> <select name="qwerty" id="qwerty" onchange="alert(document.forms[0].qwerty.value)"> <option value="1">odin</option> <option value="2">dva</option> </select> |