[jQuery] [hoverIntent]Simple Dropdown Menu (not quite so simple apparently)

2009-08-26 Thread Zaliek
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

[jQuery] [jQuery]Select Boxes - Pulling the currently selected string instead of value

2009-07-31 Thread Zaliek
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'

[jQuery] Bad Syntax? $('body').append(''); breaks script

2009-02-19 Thread Zaliek
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

[jQuery] Re: Using variables in selectors? $("input[name=x]")

2009-02-18 Thread Zaliek
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 >

[jQuery] Re: Using variables in selectors? $("input[name=x]")

2009-02-18 Thread Zaliek
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,

[jQuery] Using variables in selectors? $("input[name=x]")

2009-02-18 Thread Zaliek
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]")

[jQuery] Element Name Selector Syntax Troubles

2009-02-18 Thread Zaliek
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

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
Thanks a bunch! I'm still new to Javascript, but I should have known that :(

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
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

[jQuery] Re: Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
Number works the same as parseFloat, and swapping those still results in the same problem.

[jQuery] Math.ceil rounds down instead of up!?

2009-02-03 Thread Zaliek
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

[jQuery] Re: Building a weight calculator, completely stumped

2009-02-02 Thread Zaliek
Thank you! Works perfect!

[jQuery] Building a weight calculator, completely stumped

2009-02-02 Thread Zaliek
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