Home › Forums › JavaScript › Am I doing this correctly? › Re: Am I doing this correctly?
March 26, 2010 at 2:22 am
#72980
Member
If this is the only use of JQuery on your page, you’re being inefficient. I would recommend simply writing a javascript function to accomplish this task in good ‘ol fashion js.
That checkbox should have an "onclick=yourfunction(this)"
Then, simply have the function check if this.checked is "checked", and copy the values. Otherwise, clear the fields.
No need to use a hand grenade for a fly.