Skip to content Skip to sidebar Skip to footer

Change Checkbox Checked Value Based Upon Variable Passed By Href

Using Javascript and HTML Form Page 1: Simple Link passing two variables (page1var1=xxxx and page1var=yyyy) separated by an '&' symbol Page 2: Use Javascript to 'split' the two

Solution 1:

Something like this:

document.GetElementById(Page2var1).checked = true;
document.GetElementById(page2var2).value = 'whatever text'

Nothing google wouldn't help you with.

Post a Comment for "Change Checkbox Checked Value Based Upon Variable Passed By Href"