Tag : select

Title User Language Tags Description Date
Selecting a Random Row from Table in MySQL apphp-snippets PL/SQL

Here the simplest way of selecting random rows from the MySQL database with using "ORDER BY RAND()" clause in the query.

March 12
Remove selected items from select box j100 JavaScript

This will remove the items in a select box/list box that have been selected.

January 31
Set Default Value for Select (dropdown) Lists Using value attribute halk jQuery

For some reason setting a default value for select elements does not work. This one line of jquery solves that problem. Assign a value (value="something") to the select tag that is to be the default value. With jquery get all select elements with a (value) attribute set. For some reason I couldnt get the value of (value) with jquery, it would only return the first item in the list and not the value of the attribute(value). Oldschool Javascript managed to return it though. The result is that when the document becomes ready jquery finds all select boxes and changes their value to the value stored in the attribute(value) of the select tag. This means that you can set default values for select elements in the same way you set them for other elements - by assigning them a (value) - value="whatever"

October 16
cor da seleção de texto gustao CSS September 30
SELECT INTERSEPTIONS OBJECTS barigazy Maxscript

select all object that intersect each other

July 17
Select Last Created Object barigazy Maxscript

Select last created object using "getNodeByHandle" fn

July 17
Select - Tipos de Via tomascayuelas HTML

Select con options de tipos de vía.

June 29
JQuery Compare Selectors manolis jQuery

Selectors are ARRAYs ... so you should do something like this $('div.a')[0] == $('div#a')[0]

or use the bellow method

May 2, 2012
Speed up jQuery UI Autocomplete Combobox with very large select lists Huskie jQuery

With the current combobox implementation, the full list is emptied and re-rendered every time you expand the dropdown. Also you are stuck with setting the minLength to 0, because it has to do an empty search to get the full list.

Here is my own implementation extending the autocomplete widget. It renders the full list just once, and reuses it whenever the dropdown button is clicked. This also removes the dependence of the option minLength = 0. It also works with arrays, and ajax as list source. Also if you have multiple large list, the widget initialization is added to a queue so it can run in the background, and not freeze the browser.

April 17, 2012
custom jquery selectbox dropdown rumremix jQuery

Simple solution found via link. Just edit code from demo page(s). Also http://uniformjs.com/

April 12, 2012
validar limite de elementos seleccionados en select multiple rickyslow jQuery

validar limite de elementos seleccionados en select multiple

March 20, 2012
insert into (backup table) BrentS Other December 20, 2011
Setting a select's selected value dato PHP

dynamically selects a value in a select according to what's already in the DB

December 14, 2011
Fill select list with text value pairs Neven jQuery

This snippet describes how to fill select html element with Text, Value pairs where 'Text' is displayed to the user and 'Value' is actual value to be processed.

December 12, 2011
Custom selection color schmizpeter jQuery

Little snippet, which helps to use custom colored selections. All you need is to setup the right style and use this snippet!

December 11, 2011