M meleto Registered 19 Юни 2014 #1 Имам <input name="me" type="radio" value=""> и <form><input name="other" type="radio" value=""></form> Искам като натисна на input (name="me" с някакво value) да му вземе стойността и да я прехвърли в другия input веднага (name="other") Мерси
Имам <input name="me" type="radio" value=""> и <form><input name="other" type="radio" value=""></form> Искам като натисна на input (name="me" с някакво value) да му вземе стойността и да я прехвърли в другия input веднага (name="other") Мерси
F fbian Registered 19 Юни 2014 #2 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()); });
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()); });