I found the problem just now.
I changed the name of the drop down from 'number' to 'subscriptionNu mber' and now it works. I guess it was because number is a reserved js name, but I wasn't getting any errors regarding that.
User Profile
Collapse
-
I also tried this:
var subscriptions = document.FrontP age_Form1.numbe r.options[document.FrontP age_Form1.numbe r.selectedIndex].value;Leave a comment:
-
Easy question about a drop down
I'm trying to get the value from the selected option in a drop down and multiply it by another. The values of this particular drop down are numbers, but I keep getting NaN. Here's the script I'm trying to use:
function calcTotal5(){
var seating = document.FrontP age_Form1.price .value;
var subscriptions = document.FrontP age_Form1.numbe r.value; // problem is here
var calculate = seating * subscriptions;
... -
I know this is a few months late, but I came across this post looking how to add a bookmark in Safari. Haven't found it yet, but here's a really useful script I found. It works for IE Win/Mac and Firefox Win/Mac - even Opera
[CODE=javascript]function CreateBookmarkL ink() {
title = document.title;
url = window.location .href;
if (window.sidebar ) { // Mozilla Firefox Bookmark
window.sidebar. addPanel(title,...Leave a comment:
No activity results to display
Show More
Leave a comment: