Get value from dropdown list without having to click button - html

I need to know how can I get value from dropdown list after I selected it. But I don't need to click the button before pass the value.

You'll need to use Javascript to submit the form after selecting an option.
I can't vouch for this answer but I filed it for future use if I ever wanted to do that. It's beautifully concise.

Related

Is possible to make list for input in Ionic 2?

I need to make an input that show list of options while I'm typing some things such as this image (if possible)
I think a ion-searchbar will do what you are looking for. After adding the searchbar, you will need to bind it to the array you would like the user to be able to filter through.
Take a look at this link from the ionicframework.

Specify Format / set up placeholder for multi-column ComboBox

I want to show a placeholder in a ComboBox if no values has yet been selected or the previously selected one has been removed / deselected. For single-column ComboBoxes that works like a charm using #;"My placeholder" as the Format of the ComboBox. So far so good.
The problem starts if my ComboBox has more than one column. How can you set the placeholder value for a multi-column ComboBox? More general: How can you specify the Format for a multi-column ComboBox?
Is it for example possible to color the first column green and the second one red? And if it is possible, please tell me how.
I could not find any specification on how to set the format for multiple columns. Neither on MSDN nor on support.office.com.
P.S.: I do not care if a working solution relies on VBA or if it can achieved just by entering something in the layout or design view.
Sounds like you are outgrowing what a ComboBox can easily provide in Access.
First, combo options, and then my real suggestion.
Here are your ComboBox options:
Try conditional formatting, and see if you can get the combo's text box to change color if the value is null.
You could make a UNION query that appends your placeholder record to the top of your Combo's real recordsource
You could try to get your users used to the idea of 'blank' = null, and fix it with training.
I have never seen a way to do different combo column colors in Access.
My REAL suggestion:
Ditch the combo and go with a modal dialog form that pops up for the user. This will let you format everything much more closely to what you want.
You can put textboxes on your main form to display the placeholders.
The user clicks on the textbox to open your dialog form.

Listbox events in HTML

I want to call 'onclick' event on listbox. There is 'onchange' event which is called whenever the displayed options changes but I want to call a function when the list box is selected or the displayed option is selected again. Any help is appreciated.
I think by using HTML listbox you cant find Click event. It is Having only change event.Refer This
But You can Do it by some other way Using JavaScript. I found one interesting link Refer This
good Luck.

To change checkbox text or to not change?

I'm having an argument with a co-worker, and I'm trying to convince him that it's a bad idea to change checkbox text (label) according to the checkbox state.
For example, we have a combobox that automatically picks selected value (and is disabled) when checkbox next to it is checked and is enabled when checkbox is cleared. His idea is to show Autoselect when checkbox is checked and Manual select when it's cleared. I'm sure that this will confuse the user as users tend to think that checking a checkbox next to a verb will make it true, only to find that the label has changed to something else.
What is your opinion on this matter?
P.S. I remember reading about changing checkbox text somewhere, in a book or blog article, but can't remember where. It would be great to have this in writing :-)
No need to mess with something that already works.
Changing the label would be horribly confusing and counter-intuitive, especially in the way you describe.
If the label describes the current state ("Manual select"), it will not be clear whether it is necessary to click on the checkbox to achieve the described state (like with a button), or whether it already is in that state.
A checkbox is a simple thing. When it is off, it does A. When it's on, it doesn't do A. The label needs to reflect what it does when it's turned on; it is then perfectly clear what doesn't happen when it is turned off.
If you want to show that the choice is between "Auto select" and "Manual select" then you should either reword your checkbox label or have a radio button:
o Manual Select
* Auto Select
Which isn't really ideal either.
But you shouldn't be changing the text on the label - the user won't remember what it was before and will be confused when it changes.
Personnaly i would say that the label shouldn't change.
From my experience changing the text is confusing, I have the same issue with modal buttons that change their text. It is hard to tell whether pushing the button will turn on the selected state or the text is the selected state.
Tick box text should not change.
Changing the text when the checkbox is checked changes the meaning. If it's checked and the label says Autoselect, I expect the Autoselect option to be enabled. If you uncheck, it's clear that the Autoselect option is NOT enabled. If you change the text to be Manual select whenever the checkbox is cleared I would expect that checking the box would enable the Manual select option. It's way too confusing if the text keeps changing.
You're right, he's wrong.
Checkbox labels should not change. That's part of the way checkboxes work.
See Should “toggle buttons” show what they do or the system status? on UXExchange for an alterantive approach using toggle buttons instead of checkboxes.
The label definitely shouldn't change. It's not only confusing, but it's unnecessary and ugly.
The only way I can think to make it less confusing would be to have the label state in brackets the current state, i.e. "Manual(currently auto)[]".
But that's really just a testiment to how ugly it gets.
Don't mess with what people are used to. Especially when you consider that if you do this, one will always be shown WITH a checkmark, and the other WITHOUT. Really confusing.
In the name of compromise, you COULD use a button instead, which toggles the control back and forth, and changes its value with each click.
Current mode: [Manual]
Still kind of confusing though. As I said, don't mess with what people are used to. It's like if you put a scrollbar on the left of the screen. It'll just mess with peoples' heads.
I would not change the checkbox label... I would have it say "automatic." But, depending on what your controls are actually doing, I might modify the selection in the grayed-out combo-box to reflect that it is now under automatic control.
Then to make the logic go both ways, if while the checkbox was unchecked, the user selected the "automatic" value in the combo-box, the checkbox would then become checked.
Or in another scenario:
If, when the "automatic" checkbox is checked, the automatic logic actually chooses a default value that is in the combo-box, then change the selection in the combo-box to show what the automatic setting actually is. The combo would not be editable, but it could be used to provide information about the actual setting that is being engaged.

select multiple form

how can i make a form where you dont need to hold down control key to select multiple options ?
i want to make it so that when you just click on any of the options, they will be highlighted.
Create a list of checkboxes instead of using a list box:
http://www.siteexperts.com/tips/html/ts16/page1.asp
This List Box containing checkboxes will also work:
JavaScript ListBox Control
http://www.codeproject.com/KB/scripting/List_Box.aspx
I don't think it's an option in regular html. I'd suggest, though, that in many cases it might be easier to use checkboxes to allow for multiple items in the same list to be selected. To my mind it's also easier from a UI point of view.
Perhaps Javascript has an option, though? I wouldn't be surprised.
Or you could even use dragable checkboxes.
You can also do this using JavaScript if you want to keep the ListBox rather than use CheckBoxes.
I'd use jquery for any kind of custom ui or form elements. There are tons of form plugins for jquery. Check it :)
http://plugins.jquery.com/project/Plugins/category/20