The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Am I doing this correctly? Re: Am I doing this correctly?


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.