[development] jQuery/javascript - i need help/examples

Jeff Greenberg jeff at ayendesigns.com
Fri Sep 4 16:00:33 UTC 2009


Earnie Boyd wrote:

> I have a form in which after two fields (x and y) are entered I need 
> default values for other fields on the form to be set.  I have limited 
> experience with javascript and none with jQuery.  I have searched for 
> examples but I can't find any for this scenario.  Can someone please 
> point me in the right direction?
>
> TIA,
> -- 
> Earnie
> -- http://r-feed.com/           -- http://for-my-kids.com/
> -- http://www.4offer.biz/       -- http://give-me-an-offer.com/
>
>
>
>
Not sure whether your issue is the this/then part of it, or the form 
part. Basically, to change the value of a form in javascript, you would 
use the form field id and do something like this:
var x = getElementById('formfieldid');  - where formfieldid is the id, then
x.value = newvalue;


More information about the development mailing list