$(document).ready(function(){
$('#checkbox').click(function(){
if($(this).is(':checked')){
$('textarea#caddress').val($('textarea#paddress').val());
}else{
$('textarea#caddress').val('');
}
});
});
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<td><label for="address" style="text-align: left;">Permanent Address:<sup style="color: red;">*</sup> </label></td>
<td><textarea cols="20" id="paddress" name="address1" rows="4"></textarea><i id="pointadrs" style="color: red;"></i>
</td>
<p><input type="checkbox" name="checkbox" id="checkbox" class="checkbox">use same as my permenant address </p>
<tr>
<td><label for="address" style="text-align: left;">Current Address:<sup style="color: red;">*</sup> </label></td>
<td><textarea cols="20" id="caddress" name="address2" rows="4"></textarea><i id="pointadrs2" style="color: red;"></i>
</td>
1
solved copying an input from a text box to another [closed]