select

jquery how to re-detach a detach on option

Hello, I need help concerning following code: http://jsfiddle.net/8PsdE/ <SELECT ID="pizzasize" NAME="pizzasize"> <OPTION VALUE="s">small <OPTION VALUE="m">medium <OPTION VALUE="l">large </SELECT> $(function() { $('#pizzasize > option[value*="m"]').detach(); }); How can I add the detached option back again? Thx in advance... ...

Hiding vertical scrollbar of multi-line SELECT in Firefox and Chrome?

This problem seemed quite simple (overflow:hidden, right?) until I couldn't solve it. I have a simple multi-line SELECT with defined size: <select size="10" name="elements"> ... </select> MSIE and Opera show vertical scrollbar only when needed, but Firefox and Chrome always display vertical scrollbar in disabled state. I tried setti...

DB2 error on TSQL using SELECT AS alias and an inner join

I am writing a T-SQL program over a DB2 database on a LINUX box (DB2/LINUXX8664) using a linked server. I think the DB2 is Version 9.5.3 but not certain. I am receiving an error that I feel is likely a DB2 issue as the syntax checks out okay in T-SQL. This is the code: IF(SELECT(OBJECT_ID('TEMPDB..#TempFile))) IS NOT NULL DROP TABLE #Te...

explorer not following dropdown list option link under jquery

1st new to this list. please pardon any faux pas.... this is the html... (Q1..not sure of syntax for selected option but this seems to work...) <select> <option class=" " value="choose" selected="yes" SELECTED>choose language</option> <option class=" turnoffbuttonenglish" value="japanese" >日本語 </option> <option class=" turnoffbuttonja...

'unknown error' in SQLite on the iPhone when selecting total number of records

Trying to return whether a record exists in SQLite on the iPhone except I keep getting an 'unknown error'. selectStmt is static sqlite3_stmt *selectStmt = nil; used here if(selectStmt) sqlite3_finalize(selectStmt); which only gets executed if the application terminates. This functionality works fine with delete statements and insert sta...

Enable/Disable other elements based on selection

<select name="feature1"> <option value="1">Enable</option> <option value="0">Disable</option> </select> <input type="checkbox" name="feature2" /> <input type="checkbox" name="feature3" /> How do I disable 'feature2' and 'featured3' inputs when 'disable' in 'feature1' is selected? Thanks ...

Javascript change <p> content depending on select option

Hi, not the best with Javascript so thought i'd ask where i'm going wrong. as the title suggests, I have a select box with 4 different options, when an option is selected I want to change the contents of a <p> tag with id of pricedesc. Here is what I have so far. function priceText(sel) { var listingType = document.getElementById('...

Select and copy text from dialog in wxPython

I have a wxPython app, and in this app, I can select and copy text from various frames, but I can't do so from dialogs. Is there a way to do this? I understand I could probably do this by putting some kind of TextCtrl in the dialog, but I'd like to be able to do this from a standard looking dialog. EDIT: Sorry, I should have been mor...

Find rows that has ALL the linked rows

I've got two tables: User (id, name, etc) UserRight (user_id, right_id) I want to find the users who have rights 1, 2 and 3, but no users who only have one or two of these. Also, the number of rights will vary, so searches for (1,2,3) and (1,2,3,4,5,6,7) should work with much the same query. Essentially: SELECT * FROM User WHERE ( ...

select and ssl in python

I've got a server application using select.select(), and now I'm trying to add SSL to it, however I get the following error when listening to the "raw" sockets: ValueError: file descriptor cannot be a negative integer (-1) so I figured I'd use the ssl streams returned by ssl.wrap_socket in select instead. Doing so, it doesn't return a...

Having a generated column depend on other generated columns

What would be the best way of doing this? select 'blah' as foo, CASE WHEN foo='blah' THEN 'fizz' ELSE 'buzz' END as bar As it is written right now I get an invalid column name 'foo' error. Is there anyway to do this where the select statement could be used as a view? ...

User Interface: Multiple choice select boxes

I have a form in which a user can select multiple options in a select menu. From a user experience perspective, what do you think is the most intuitive / best option? A) Use the "multiple" attribute for select element (then you can hold down control and select multiple options). ADV: Simple, no coding required. DIS: Not intuitive. B) H...

UltraTree Infragistics - select all the nodes

Hi, anybody knows how to select all the nodes through of root? (UltraTree Infragistics) ...

struts2 select tag, second select based on value of first select

Hello. I have 2 select, I want the second select list loads based on selected value of first select. In another word first select is a list of objects, those objects each has a list of another objects. so I want load second list based on selected object of first select. I know that can be done using JQuery, but can I do this without Jav...

jquery - select first element which doesn't have "display:none"

<td class="profile"> <% var usedColors = ViewData["usedColors"] as string[]; %> <a class="profile-color" href="#" style="background: #c00; <% if (usedColors.Contains("#c00") && Model.Color != "#c00") {%>display:none<% }%>" id="color-c00">Color1</a> <a class="profile-color" href="#" style="background: #3491c2; <% if (usedCo...

Select XML nodes as XML in T-SQL

This one seems so simple, but I must be missing something... Given this SQL: declare @xml XML set @xml = '<people> <person> <name>Matt</name> <surname>Smith</surname> <person> <person> <name>John</name> <surname>Doe</surname> <person> </people>' How would you go about getting a table containing: people ------...

Vim object-select with syntax-aware text-objects

I just learned about the truly awesome object-select capabilities of vim. With the cursor within some "text object", a set of simple verbs can select or operate on the whole object. For example, with the cursor anywhere inside the quotes below (e.g. over the 'o'): print "Hello, world" ^ The command vi" will select the who...

Where clause on a column that's a result of a UDF

I have a user defined function (e.g. myUDF(a,b)) that returns an integer. I am trying to ensure this function will be called only once and its results can be used as a condition in the WHERE clause: SELECT col1, col2, col3, myUDF(col1,col2) AS X From myTable WHERE x>0 SQL Server tries to detect x as column, but it's really an...

How i can create a new ties.method with R rank() function ?

Hello guys, I'm trying to order this dataframe by population and date, so i'm using order() and rank() function : idgeoville date population 1 5 1950 500 2 8 1950 450 3 4 1950 350 4 3 1950 350 5 4 2000 650 6 5 ...

Select the content of textbox when it reveives focus

I have found a similar question to mine in http://stackoverflow.com/questions/97459/automatically-select-all-text-on-focus-in-winforms-textbox Now i am trying to modify or make it some more different by making it general. I want to apply same action to all the textboxes in form without write code for each one... how many i dun know. As ...