The following alert($('city').value) returns undefined. The alert($
('zip').value) returns 'zip' and $('city').update works fine also.
Any help word be appreciated.

Ken


<HTML>
<HEAD>
  <title>Css Call List</title>
  <script language="Javascript" src="includes/scripts/prototype/
prototype.js"></script>
  <script language="javascript" type="text/javascript">
  function handleCity() {
    $('city').update('Dallas');
    alert($('city').value);
    alert($('zip').value);
  }
  </script>
</HEAD>
<BODY >
  <form action="post">
    <p> ZIP Code: <input type="text" size="5" id="zip" onChange=
"handleCity();"/>
    </p>
  </form>
    <div id="city">Houston</div>
</BODY>
</HTML>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Spinoffs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-spinoffs?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to