ReynierPM wrote:
rupak mandal wrote:
I have another question related to this. How can I clear the fields if I
uncheck the checkbox? I mean when marked fill fields as I do until now
and when unmarked empty those fields? How can I check when the checkbox
is checked or not?
Cheers
Reply by myself:
if ($('#checkbox_id').is(':checked')) {
// fill fields
} else {
// empty fields
}
Now I empty fields in this way:
$("#billing_first_name").attr("value", "");
Exists a nice or simply way to do this? Maybe something like:
$("#billing_first_name").empty()
Cheers
--
ReynierPM