Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
form button enable/disable
Old 10-06-2005, 09:03 PM form button enable/disable
DJA
DJA's Avatar
Skilled Talker

Posts: 87
Trades: 0
is there a way to disable/enable buttons when other buttons are pressed
__________________

Please login or register to view this content. Registration is FREE
DJA is offline
Reply With Quote
View Public Profile Visit DJA's homepage!
 
 
Register now for full access!
Old 10-06-2005, 11:01 PM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
You can use JavaScript:

HTML Code:
<form name="theForm">
<input type="text" name="textBox" value="Blah, Blah">
<input type="submit" onclick="document.theForm.textBox.disabled=true;return false;">
</form>
Google will help you too:
http://www.google.com/search?client=...UTF-8&oe=UTF-8
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Old 10-06-2005, 11:52 PM
Extreme Talker

Posts: 176
Trades: 0
hmmm thats pretty cool, but how do you make it so there is a radio, and when you have 1 selected it displays 1 forms and the other has another form displayed?
__________________

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE
wmtalk.tk is offline
Reply With Quote
View Public Profile
 
Old 10-07-2005, 01:01 AM
funkdaddu's Avatar
Web Design Snob

Posts: 635
Trades: 0
You'd have to make the onclick of the radio button show a div and hide another:

HTML Code:
<form>
<input type="radio" name="RadioButton" value="Radio 1" onclick="document.getElementById('div1').style.display='block';document.getElementById('div2').style.display='none';"> Radio 1<br>
<input type="radio" name="RadioButton" value="Radio 2" onclick="document.getElementById('div1').style.display='none';document.getElementById('div2').style.display='block';"> Radio 2
<div id="div1" style="display:none"><p>Div 1</p></div>	<div id="div2" style="display:none"><p>Div 2</p></div>
</form>
funkdaddu is offline
Reply With Quote
View Public Profile Visit funkdaddu's homepage!
 
Reply     « Reply to form button enable/disable
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.26886 seconds with 12 queries