|
|
||||||
|
||||||
| Index Link To US Private Messages Archive FAQ RSS | ||||||
| Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome. |
Share Thread: & Tags
|
||||
|
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
i want to validate this form in this way
i have a select for them to select their contact preference one of them is Fax and i dont have a fax number required to be typed in i want to to be required if they select fax how do i do this ? this is what i have so far Code:
function fax(formField,fieldLabel,required)
{
var result = true;
if(!result)
{
alert("You have selected Fax as your contact preference please type in your fax number");
{
return result;
}
please help
__________________
http://mxtracks.us/images/MXTracksLogo.gif California MX Tracks, Games, Photos, whatever you want its here |
|
||||
|
Hi,
I try to answer : in a form, each element (radio button, input box, check boxes etc.) should have a name, which you tell via the 'name=xxxx' parameter within the HTML tag. Now, once your tag has a name, you can address it via JavaScript, and then read its content and then verify it before sending the form on the web. The bad new is that this check requires a few javascript code, hence if you don't know javascript it's hard to explain !... Could sound like "MI-2" or more !! JP
__________________
www.net-createurs.com [ french only website sorry ! ] |
|
|||
|
And users must have Java enabled in their browsers as well.
__________________
http://www.twojecentrum.pl - Polish e-shopping center http://dzwonki-loga.pl - Ringtones for mobile phones |
|
|||
|
I figured it out guys
__________________
http://mxtracks.us/images/MXTracksLogo.gif California MX Tracks, Games, Photos, whatever you want its here |
![]() |
|
| Thread Tools | |
| Display Modes | |
|
|
|
WebProWorld |
Advertise |
Contact Us |
About |
Forum Rules |
MVP's |
Archive |
Newsletter Archive |
Top |
WebProNews
WebProWorld is an iEntry, Inc. ® site - © 2009 All Rights Reserved Privacy Policy and Legal iEntry, Inc. 2549 Richmond Rd. Lexington KY, 40509 |