[jQuery] jQuery + select

2010-01-20 Thread Mateo
This is a little baffling to me. I can get the selected value (val attribute) on an option element, but only by using the following method: var selectedId = $(#mySelectElement :selected).val(); This is great, but all the examples I have read simply do the following: var selectedId =

Re: [jQuery] jQuery + select

2010-01-20 Thread Nathan Klatt
On Wed, Jan 20, 2010 at 12:34 AM, Mateo matthew.kim...@gmail.com wrote: var selectedId = $(#mySelectElement).val(); Returns the value of the select element but you want the value of the selected option element under the select, hence: var selectedId = $(#mySelectElement :selected).val();

[jQuery] jQuery select where attribute ID less than

2009-08-31 Thread Namir
How can I do a less than in a select e.g. something like $.(span.class [id+ a_custom_variable +]) when I tried that it just selected all span of class with an ID attribute rather than where ID attribute is less than

[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? select id=choices option value=valueString/option /select 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

[jQuery] jQuery select all vs conventional javascript

2008-11-19 Thread JQueryProgrammer
Hi All, I have been using jQuery for quite some time now. For one of my projects, I needed to select all the options in the listbox which were 10,000+. I tried to do a comparison between using jQuery and conventional javascript and here are my findings: 1. With jQuery: Code:

[jQuery] jQuery select option with errors for IE 6

2007-12-13 Thread vasten
Hi: It seems that the following code snippet works for IE 7 and FireFox but not for IE6: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http:// www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd html xmlns=http://www.w3.org/1999/xhtml; head title/title meta

[jQuery] jQuery + Select Box woes

2007-10-23 Thread Steve Finkelstein
Hi all, I'm having some difficulty getting select boxes to function the way I envision them to function. I'm using the Plugin available from: http://www.texotela.co.uk/code/jquery/select/ My code looks like the following: $(select#make).change(function() {