I've built some CSS dropdown menus which work properly on their own:
Dual Sport
Dual Sport
Kits
Lighting
Stators
Vapor
Speedo/Tach
Fuel Tanks
i
How do I retrieve the currently selected option string in a select box
instead of the value?
String
Using
$("#choices").val();
returns the value if it's set. if there is no value set, jQuery
returns the string instead. I want to retrieve the string while a
value is set!
Thanks for you time, I'
A test page is located http://www.procycle.us/
test.html">here.
I'm attempting to insert an extra hidden input field with the extra
weight whenever an item in our shopping cart page has a quantity of 2
or more. Problem is this specific part of the code:
$('body').append('');
causes an externall
Works great! Thanks a bunch
On Feb 18, 2:40 pm, James wrote:
> Make sure your single-quotes is wrapping the actual name
>
> $("input[name='element12']")
> becomes:
> $("input[name='element" +myVar+ "']")
>
> Just do
>
Is it possible to add strings together or does that need to be done
outside in a variable?
Something like ($"input[name='element' + "+x+"]")
On Feb 18, 2:00 pm, aquaone wrote:
> ($"input[name="+x+"]")
>
> On Wed, Feb 18, 2009 at 13:56,
I haven't found any mention of this in the documentation. Can you use
a variable in place of a string when using a selector to match an
element in a page? If so, what is the syntax?
x = foobar
$("input[name=x]")
Currently building a shipping calculator and attempting to add in a
section that checks every shopping cart item's quantity and then
multiplies that quantity by the weight of that item.
The HMTL consists of input fields similar to the example below:
The way I designed the following portion of
Thanks a bunch! I'm still new to Javascript, but I should have known
that :(
Using decrement the way I did will change the actual var at the same
time?
It needs to be decremented to pull the correct array value since
arrays start at [0] instead of [1]
Is there a way to get the decremented value without changing the
actual variable? I still need to display the total weight
Number works the same as parseFloat, and swapping those still results
in the same problem.
I've finished my shipping calculator script, but now for some reason
Math.ceil used on "var sum" in my script does the opposite of what
it's supposed to! When it's used in an older version of my script it
works correctly so I would assume I've done something wrong that's
borking the script now.
T
Thank you! Works perfect!
I'm new to javascript and jquery.
I'm building a shipping calculator that pulls the weights from hidden
input fields and adds them together then calculates the shipping
price. Due to the proprietary nature of the code I cannot change the
code of the input fields. The input fields are named weight1
13 matches
Mail list logo