Forum Search:
phpHtmlLib
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » General » HTML & Javascript » Java Script & FEListBoxes
Java Script & FEListBoxes Wed, 04 October 2006 01:47 Go to next message
Darshani  is currently offline Darshani
Messages: 1
Registered: September 2006
Location: Sri Lanka
Newbie

From: *182.adsl.sltnet.lk
Hi,

I have a text field which hold the user input ; lets say the label is length... Besides the form contains a dropdown which provides options of the measurements to the user. Drop down values are "Metres" and "Feet". According to the options selected the text box values get changed appropriately.

for that I came up with a java script which should have been used at the OnChange event of the FEListBox.

function convert()
{
var height=document.getElementById("Release Height").value;
var option=document.getElementById("Height Measure").value;

if(option == "Metres")
height=height*3.2808;
else if(option == "Feet/Inches")
height=height/3.2808;
}

The strings "Release Height", "Height Measure" are names of the FEListBoxes used in the form.

But I encountered that this does not do any change to the form. Can anyone give me a detailed solution?

Thanks,

Deni
Re: Java Script & FEListBoxes Mon, 09 October 2006 14:45 Go to previous message
phphtmllib  is currently offline phphtmllib
Messages: 776
Registered: September 2002
Location: Cool, CA
Senior Member
Administrator

From: *buildabetterweb.com
it's not working? the js isn't being called?
Previous Topic:js menu widget?
Next Topic: Thailand welcomes Twitter's new censorship policy
Goto Forum:
  


Current Time: Sat May 25 01:49:55 PDT 2013

Total time taken to generate the page: 0.31995 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.0.
Copyright ©2001-2009 FUDforum Bulletin Board Software