Jump to content

Radio button on Press Echo


SeanFromIT

Recommended Posts

i'd say javascript though. thats what javascript was sort of designed for.

 

<form action="page.php" method="POST" name="form">
Click the checkbox: <input type="checkbox" value="Hello" name="checkbox" onclick="javascript: alert('Value: '+document.form.checkbox.value);">
</form>

 

that should work. thats how i'd do it.

Link to comment
Share on other sites

"Javascript or Ajax..." I'd say javascript though. thats what javascript was sort of designed for.

 

For a start, what do you think the 'J' in aJax stands for, so by suggesting one over the other, you possibly haven't quite grasped the concept of it yet.

 

In addition, my above comment aside, how can you make such an assumption without knowing what s/he wants to display.

 

Suppose the radio button is a "Select your free gift" on the order form of their website... when they click the radio button the poster wants to check the database to see if there's any of that gift in stock, and if not display an image of a cross next to the button, or a tick if it is in stock.

 

How do you do that in just Javascript alone?

 

Regards

Huggie

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.