Change text field CSS : Form TextBox « jQuery « JavaScript Tutorial






<html>
  <head>
    <script type="text/javascript" src="js/jquery-1.3.2.js"></script>
    <script type="text/javascript">
  $(document).ready(function(){
     $("label + input").css("color", "red").val("value")
  });
    </script>

  </head>
  <body>
      <form>
        <label>Name:</label>
        <input name="name" />
        <fieldset>
          <label>Address:</label>
          <input name="newsletter" />
        </fieldset>
      </form>
      <input name="none" />

  </body>
</html>








30.126.Form TextBox
30.126.1.Change text field CSS
30.126.2.Set textbox value
30.126.3.Text box selected event
30.126.4.Text input change event
30.126.5.Find the value of an input box.
30.126.6.set the value of select elements, but selecting the appropriate options.
30.126.7.To add a validity test to all text input elements:
30.126.8.Focus event fires when an element receives focus either via the pointing device or by tab navigation.