Creating Shortkey select an item in a dropdown - google-chrome

I am trying to create a hotkey using shortkey plugin for chrome that will run a script that will select option 3 of this div. The site i will be doing this on is Shipstation and there is a hotkey already that is to pull up the window that this is in -> ctrl+shift+s.
basically it needs to pull up the window using the hotkey specified above then select option 3
"
<option value="1">Awaiting Payment</option>
<option value="5">On Hold</option>
<option value="2">Awaiting Shipment</option>
<option value="3">Shipped</option>
<option value="4">Cancelled</option>
<option value="6">Processing...</option>
</select>
</div>"

Related

CSS bootstrap conflict duplicate select option

Hello this is my first post
I am new to web development and having a wired issue .
when i add select options it gets a dublicate text just below it which is labelled as no 2 and i dont want it .
enter image description here
my html code
<select>
<option value="Hafizabad">Pakistan</option>
<option value="Hafizabad">USA</option>
<option value="Hafizabad">Russia</option>
</select>
Please check that options are given inside the select element like below
<select>
<option value="one">One</option>
</select>

How to stop multiple select options jumping to top of list on click in chrome?

My HTML table is simple. When I click on an option thats visible in the select box, it selects fine however, when I click on an option thats not visible / out of view, the list of options simply scrolls to the top and I get nowhere. The option wont mark as selected even though its highlighted.
This only seems to be a problem with Chrome though as it works fine in FF.
<select class="propertytype" multiple>
<option value="Villa">Villa</option>
<option value="Hotel">Hotel</option>
<option value="HotelVillas">Hotel Villas</option>
<option value="Apartment">Apartment</option>
<option value="Private">Private</option>
<option value="Villa&ApartmentSales">Villa & Apartment Sales</option>
<option value="NewDevelopments">New Developments</option>
</select>

Prevent auto select first option of multiselect box in iPhone Safari

I have a problem with multiselect box on iPhone Safari. When I open the multiselect box it automatically selects the first option. Here is the code snippet that i am using:
<select multiple>
<option value="test1">Test 1</option>
<option value="test2">Test 2</option>
<option value="test3">Test 3</option>
</select>
I have added a blank option with the disabled attribute (see below from here) as the first option but it didn't work in iPhone Safari. I am using an iPhone 6s+:
<option disabled></option>
disable=disable
just add it in option so that no one will be able to access that option
<option selected=selected value="test0">Pick an option</option>
Use the attribute selected to specify that this option should be the one selected. Or put the first one you want to see selected by default at the top of your list.
disabled attribute will, well i know how unprobable it sounds, disable your select option, thus means it will not be able to be selected.

How to refer to a website with section tags (HTML)

If you have
<select>
<option value="val1">Teemo bot</option>
<option value="val2">Teemo mid</option>
<option value="val3">Akali mid</option>
</select>
How do I make it, when you click on one, it transfers you to another site.
you might want to use on change, since you are unable to select a option if first click redirects.
<select onchange="javascript:document.location=this.options[this.selectedIndex].value;">
<option value="http://google.com">Google</option>
<option value="http://stackoverflow.com/">Stackoverflow</option>
</select>

Html drop down box with scrollbar at options

I've been trying to find a solution and example for this problem for a while now.
We have a combobox with a lot of options, ranging from 1 up to atleast 100.
Our customers don't always use proper resolutions so for some the options will scroll out of the screen.
What we want is to have the normal HTML combobox but when you click it show a "box" which shows only 10 options with a scrollbar to scroll to the other 90 options
Example:
This example is (probably) made in winforms but I want to have this as a html/javascript(jquery). At which point the options will not be visible unless you click the control (As a normal combobox would work)
Attempts
I have already:
- tried putting the combobox in divs and giving it a size. But that will make it loose the popup function and we want to keep that.
tried every other post in stackoverflow that concerned combobox's (dropdownbox) with vertical scrollbars
added "size='5'" but this would just make it a listbox instead of a combobox
added "multiple='yes'" but this doesn't do anything usefull for my cause
You can try this..
<select name="select1" onmousedown="if(this.options.length>8){this.size=8;}" onchange='this.size=0;' onblur="this.size=0;">
<option value="1">This is select number 1</option>
<option value="2">This is select number 2</option>
<option value="3">This is select number 3</option>
<option value="4">This is select number 4</option>
<option value="5">This is select number 5</option>
<option value="6">This is select number 6</option>
<option value="7">This is select number 7</option>
<option value="8">This is select number 8</option>
<option value="9">This is select number 9</option>
<option value="10">This is select number 10</option>
<option value="11">This is select number 11</option>
<option value="12">This is select number 12</option>
</select>
I'm not really sure if I'm getting it, but is this what you are looking for: you could just set the size of the select item which is generated.
Add this line of style in your component: style="height: 200px; width: 300px;".
.
.
.