php - how to display contact address as the permanent address by clicking the checkbox -
I want to display the contact address and permanent address by clicking on the checkbox for example : If I type contact address and click on the checkbox the same address should be displayed in the permanent address field. How to use jquery? Thanks in advance .. I have done this through java script. Maybe it's useful for everyone. Check box code: JavaScript code:
& lt; Input type = "checkbox" name = "current" onclick = "permanent (this.form)" & gt;
& lt; Script language = "javascript" & gt; Function permanent (p) {if (p.present.checked == true) {p.per_add.value = p.temp_address.value; P.per_city.value = p.temp_city.value; P.per_state.value = p.temp_state.value; P.per_country.value = p.temp_country.value; P.per_pin.value = p.temp_pin.value; }} & Lt; / Script & gt;
Comments
Post a Comment