javascript - How to copy a field in Classic Asp -



javascript - How to copy a field in Classic Asp -

we started supporting more browsers ie. i'm hunting quick prepare our website.

we have billing address field , shipping address field checkbox copies billing shipping fields.

what works in ie looks like

response.write("<input type=""checkbox"" name=""sameassubmitter"" value=""same"" onclick=""document.getelementbyid('shipto').value=document.getelementbyid('billto').value;""/>same billing

on firefox , chrome same code generate checkbox, not homecoming document.getelement tips or tricks can utilize re-create billing fields shipping fields?

turns out fields never given id in first place , quirk of ie check field's name in place of id if none assigned.

javascript asp-classic cross-browser

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -