How to show a two column DropDown? - html

I want to show a DropDown that should display two values in two columns. I want in HTML or CSS.

Mega-dropdown? Check this example; Tutorial here.

You won't be able to do this with HTML and CSS only. You will have to use script also.
Here is a jQuery based drop down
mcDropdown jQuery Plug-in v1.2.10
You can also check this one
38 jQuery And CSS Drop Down Multi Level Menu Solutions

Related

How to hide <select> and toggle (open) with a button

I'm using bootstrap 3 and am trying to imitate jQueryMobile's select option where you can replace the standard select textbar and arrows with just a button which toggles the opening of said select.
I don't want to use dropdowns either because they get hidden inside my nested divs (if you can make them appear at the topmost layer, then that's fine too).
So I'm wondering if there's a way to have a button as a stand-in for opening the select options.
Not totally sure on this, need a little more information. But you can create a button with:
<button type="button" onclick="alert('Message')">Button</button>
if that what you wanted?
This isn't exactly what you asked for but I did a search and found this plugin and I think if you were to experiment with this then you could come up with the desired effect. Give it a look over.
Theres a spot about a 1/3 of the way down the page which I think would help you decide if this would work.
Plugin: Bootstrap-Select

HTML in Spotfire and IronPython

I want to make a drop down list in spotfire using html. So based on choice selected I want to show custom divs. How to implement that ?? Can anyone help with the ironpython script
Do you want to use ironpython or do you want to use HTML? There is no need to use both although you could make a solution with both.
Anyway this question shows you how to do it with HTML and JavaScript, both of which I believe you can use in Spotfire.
Drop down list - display div when clicking an option
You will want to create that script that is activated by your Property Control. The Property control would dynamically change a different textbox in the visualization. The code you would use would look a bit like this:
from Spotfire.Dxp.Application.Visuals import HtmlTextArea
outputVis = output.As[HtmlTextArea]()
outputVis.HtmlContent = "<p>"
What you can do is add a new text area. Then, add a drop down list in this text area. You can create a new Document.Properties linked to this drop down list.
You can create many options in your drop down list, and your Document.Properties will have the selected value of your drop down list.
Text Area could be designed in HTML/CC so you can customize as you want.
Once you have your Document.Properties with the drop down list value, you can go on your chart properties and add a custom expression with your Document.Properties like [MyCol]==$(docproperties)
I hope it will help you !

jQuery Mobile dynamically creating select menu

I need to be able to add rows to a table dynamically with jQuery mobile. The rows consist of selection menus and input boxes. The code I have seems to work in pure jQuery and html but when I add the mobile stuff it stops working (the "added" select menus and input elements act as if the first row in the table is being clicked). I have a jsfiddle here. Does anyone have suggestions? Or an explanation of why jQuery mobile is breaking my code?
When you call clone on the tr, the cloned row is inserted verbatim into your DOM. In order to achieve the result you want, the new <select> needs to have a unique ID.
You should add some logic to ensure that the new <select> tag has a different ID, such as select-choice-3, select-choice-4, etc.

Label whole column for radio-buttons in table

I have a HTML table with several rows and columns and one radio-button in each column. I would like to make it possible to click in any row of the table to select the radiobutton in that column. I know it can be accomplished with the label-tag, by using javascript or some kind of CSS3.
But I would like to know if there is any pure HTML-way to do this? Without adding a label-tag for each cell in the table and not using javascript or CSS.
Because the table has like 15 rows and 10 columns, so it doesn't feel right to add 150 label-tags in the table and it would be nice not to have to rely on javascript or CSS3 that may not be supported or activated in all browsers.
I have read about the colgroup- and col-tags in HTML, but it doesn't seem they can add HTML like a label-tag for all cells in a column.
You should be able to add this feature with JavaScript. Add a click event to the whole <tr> in which you toggle the form field. I recommend using jQuery because it will (1) make this task a lost simpler, and (2) make your solution more likely to work across different browsers & versions.

Divide page into two sections

I want to divide my page into two sections. It must be separated by a slider. In the left-pane, I want to display Form names and on the right-pane, I want to show the Form that was selected from the left-pane.
Which controls to use?
Maybe you're looking for Coda Slider?
Are you thinking about using a frameset (* shudder *)?
I know you don't have the jQuery tag, or even javascript for that matter, but this jQuery Splitter Plugin may do the trick... I'm sure you can expand the content to fit the page.