unordered

JQuery - Add css class to List

I have the following HTML : <li> <a class="meuble-tab" href="#">Meuble</a> </li> i need to achieve the following: <li class="active"> <a class="meuble-tab" href="#">Meuble</a> </li> Using Jquery I am at the point where i can get to the $(".meuble-tab") How do I get to its parent "li" to do the addClass("active")? ...

How do I sort the result of an SQL join by a single column in PHP

I have a database with a list of locations e.g.: C_ID | Name 1 | Italy 2 | Germany 3 | France 4 | Spain and in a seperate table, a list of people who are from those countries, P_ID | Name | C_ID 1 | John | 1 2 | Mark | 1 3 | Paul | 2 4 | Pierre | 3 5 | Alan | 2 I have grabbed ...

PHP Array to List

How do I go from this multidimensional array: Array ( [Camden Town] => Array ( [0] => La Dominican [1] => A Lounge ) [Coastal] => Array ( [0] => Royal Hotel ) [Como] => Array ( [0] => Casa Producto [1] => Casa Wow ) [Florence] => Array ( [0] => Florenciana Hotel ) ) to this <ul> Camden Tow...

Resolving Problems with jQuery and Unordered List Loading

I'm building a very simplistic unordered list tree in XHTML with multiple levels deep. The way it works is that you click a parent node, and it uses the jQuery .load() API to make an AJAX call back to the server to see if this node has children. If it does, it inserts those nodes inside. When you click the parent link again, it does a .r...

How to use CSS to control the style of an HTML unordered list?

Basically I want to control the margin on the left of the list. Here's how I have it structured: <li> <a href="http://link.com"&gt;Main&lt;/a&gt; <ul> <li> <a href="http://link.com" title="">Sub1</a> </li> <li> <a href="http://link.com" title="">Sub2</a> </li> </ul> </li> The sub-sections are ...

Possible to retrieve an arbitrary unordered set of named groups in one swoop with Python's re module?

This is super handy for some problems: >>> re.search('(?P<b>.b.).*(?P<i>.i.)', 'abcdefghijk').groupdict() {'i': 'hij', 'b': 'abc'} But what if I don't know what order to expect ahead of time? [update] Eg, say I have an input variable containing some unknown order of characters and it just so happens that 'b' comes after 'i'. I wa...

How to remove opposite rows from SQL table.

I have the following SQL table: A|B --- w|x x|w y|z z|y Can I construct a query which will yield the following result: A|B --- w|x y|z To summarize, I would like to treat the two columns as an unordered set, such that (a,b) == (b,a). ...

css, unordered list not displaying icon in right place...

I'm really frustrated with this one. A few weeks ago I got it working in both firefox and ie just fine. Went back today to do some testing and found a problem with the display in firefox and I've been searching the code but can't find anything. I could use a few tips from anyone willing, I'm sure I'm looking at the wrong things. I up...

ASP.NET - Is it possible to render a TreeViewControl as an unordered list instead of a table?

Is it possible to render a TreeViewControl as an unordered list instead of a table? ...

Get all textbox values from list (jQuery Sortable)?

I have an unordered list, each list item has an id (id="6~OriginalName") - when I do a toArray on this list, I get a nice array and each item looks like "6~OriginalName" that I can parse later on. $("#roleList").sortable('toArray') The problem is that now I've embedded a TextBox in each list, which its value that of the OriginalName, ...