Прехвърляне на val() с jQuery

meleto

Registered
Имам <input name="me" type="radio" value="">

и
<form><input name="other" type="radio" value=""></form>
Искам като натисна на input (name="me" с някакво value)

да му вземе стойността и да я прехвърли в другия input веднага (name="other")

Мерси
 
meleto каза:
Имам <input name="me" type="radio" value="">

и
<form><input name="other" type="radio" value=""></form>
Искам като натисна на input (name="me" с някакво value)

да му вземе стойността и да я прехвърли в другия input веднага (name="other")

Мерси

PHP:
$("input[name='me']").click(function() {

       $("input[name='other']").val($("input[name='me']").val());

});
 

Горе