Click here to Skip to main content
15,884,944 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
There is a site with some radio buttons, I want to send the URL of that site to friends and when they click the link they have some already selected radio buttons.
How Can I manage it through the URL?
Posted
Comments
Mohibur Rashid 28-Aug-14 3:21am    
<INPUT TYPE='RADIO' CHECKED>

does this help?
AnTiiiKa 28-Aug-14 4:41am    
I have no access to the server side, I want to add something within the url i will send so the radiobutton is checked
Mohibur Rashid 28-Aug-14 5:03am    
if you have no access to the server you are not suppose to change anything automatically. if you do not have access to the server then someone else have to have the access. If a server let some external application to change the behavior of the script then that is a really bad server.

1 solution

Use javascript [Onload event]

1.Get page url with
document.URL


2.Parse it. For getting parameter you look for.

3.After use
document.getElementById("radiobuttonId").checked = true;


to check radio buttons you want depending your condition rules
 
Share this answer
 
Comments
AnTiiiKa 28-Aug-14 4:31am    
How can I add that to the URL I will be sending to the guys? I can't edit anything in the site which has the radiobuttons.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900