Mysidia Adoptables Support Forum  

Home Community Mys-Script Creative Off-Topic
Go Back   Mysidia Adoptables Support Forum > Mysidia Adoptables > Questions and Supports

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 01-24-2010, 07:38 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 15,425
Quillink
Default Answered | Radio lists: default selection?

I've been googling the topic for hours but I can't seem to get my radio list to have a default selection. Here's the section of the code, can someone show me how to have "Undisclosed" selected when the page loads?

Code:
Gender: 
<input type='radio' value='Male' name='gender'>Male &nbsp; 
<input type='radio' value='Female' name='gender'>Female &nbsp; 
<input type='radio'  value='Undisclosed' name='gender'>Undisclosed


Also does anyone know how to get this working? It's the refresh button for my CAPTCHA and I'm really not sure where to start:

Code:
<a href='#' onclick='document.getElementById('captcha').src = '/securimage/securimage_show.php?' + Math.random(); return false'><img border='0' src='secureimage/images/refresh.gif'></a>

Thanks in advance,
- Quillink
Reply With Quote
  #2  
Old 01-24-2010, 09:35 AM
BMR777 BMR777 is offline
Member
 
Join Date: Jan 2011
Posts: 1,122
Gender: Male
Credits: 16,743
BMR777 is on a distinguished road
Default RE: Radio lists: default selection?

For the radio button part:

Code:
<input type='radio'  value='Undisclosed' name='gender' checked>Undisclosed
Just add the word checked in there. :)

Unfortunately I can't help much with the CAPTCHA refresh as Javascript is not my area. :)
Reply With Quote
  #3  
Old 01-24-2010, 09:48 AM
Quillink Quillink is offline
Member
 
Join Date: Dec 2008
Posts: 93
Credits: 15,425
Quillink
Default RE: Radio lists: default selection?

Thanks BMR777, worked like a charm. :)

EDIT: Don't worry about the second question, I figured out the reason.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Default Pet Name Abronsyth Questions and Supports 5 11-28-2015 01:11 PM
How to Change Default Pages text? gloryKAT Questions and Supports 14 07-25-2013 09:47 PM
Suggestions for default Item functions Hall of Famer Suggestions and Feature Requests 36 01-14-2012 09:21 AM
HELP! default theme won't change mythic Templates and Themes 3 10-05-2011 08:24 PM
How to change the default layout. alonaria Questions and Supports 6 04-05-2011 02:24 PM


All times are GMT -5. The time now is 10:29 AM.

Currently Active Users: 4691 (0 members and 4691 guests)
Threads: 4,081, Posts: 32,032, Members: 2,016
Welcome to our newest members, jolob.
BETA





What's New?

What's Hot?

What's Popular?


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
vBCommerce I v2.0.0 Gold ©2010, PixelFX Studios
vBCredits I v2.0.0 Gold ©2010, PixelFX Studios
Emoticons by darkmoon3636