It shuld work normally . Class or Id ?? Be sure not use one Id for two divs. And getElementsByClass may not be available for older versions of browsers, you myt want 2 implement that..
window.onload =
function ()
{
$("convert").onclick =
calculateCelcius_click;
$("convert").onclick =
calculateFahrenheit_
click;
}
BE SURE NOT TO GIVE 2 ELEMENTS THESAME ID. In your html code.
SORRY TRY THIS ONE, THE PREVIOUS ISN'T WORKING!!
Try this function out; you use it by passing the value of the textfield as an argument
then an optional second argument for reference to the...
try this function out; you use it by passing the value of the textfield as an argument and it returns true if the text value is in the dropdown list.
and false if it is not
//try this out
function Calc(val){
var result=1, num=parseInt(val,10), ind=val.indexOf('^'), power=val.slice(ind+1);
for(var i=0;i<power;i++){
result*=num;
}
return result;
}...
Dats html_5 code and its nt supported in older browsers.
If you are using float in ur layout,
Remove the footer tag, enclose the footer code in a div tag and give it an id; "footer" and add a clear...