Kim,

>
>I have a password field that I'd like to encrypt
>before sending via ajaxSubmit (a simple MD5 call would
>suffice). I know I can use beforeSubmit to do things,
>but am not sure how to physically change a value. 

To change the value of a text element, you can use the jQuery method val():

http://docs.jquery.com/DOM/Attributes#val.28_val_.29

val( val )

Set the value attribute of every matched element.

Return value: jQuery
Parameters:

    * val (String): Set the property to the specified value. 

Example:

 $("input").val("test");

Before:

 <input type="text" value="some text"/>

Result:

 <input type="text" value="test"/>

-Dan

Reply via email to