помогите! PHP: <script type="text/javascript"> function showHint(str){ alert (str) } </script> <input type="text" name="textfield" id="textfield" onchange="showHint(this.value)" /> <p> <a href="" onclick="showHint(value.id="textfield")">clik </a></p> как при нажатие на сылку выводилась алертом значение inputa ?
У мя так работает: Code: <input type=text name='test' value='Hello'> <input type=button value=Crack OnClick="javascript:alert(test.value);">
спасибо всем главное спасибо bul.666 вот так заработало <input type="text" name='test' id="str" onchange="showHint(this.value)" /> <a href="" onclick="showHint(test.value);">clik </a>