I've never used jquery before and I have been working on this for the past 2 hours. I have a login system on my front webpage to login 2 control panels. Control panel 1 and control panel 2. I have the html form's already to login, I just don't want to put 2 login forms right next to each other. I want to be able to use 2 radio buttons. So my login would look like this:
For the above code to work, you need to change "login_form" with the name of the login form, and make sure you don't have any other radio buttons in the form (if you do, the above function will act weird, but theres a work around). Also, change the "Value" attribute of your radio buttons to the control panel login page (the one you post the username/password to).
Thanks, it worked but I have one problem. When I click on either one of the buttons, the previous button stays filled in still. The script still works though, it will go to whatever panel the last button is clicked.