Linked Questions

2 votes
0 answers
233 views

I want to have a <select> element with no items selected/checked. On Windows this is easy, you just don't specify a selected attribute. On OSX, it automatically puts a checkmark on the first ...
Gavin's user avatar
  • 8,084
0 votes
0 answers
125 views

<?php $servername = "localhost"; $username = "root"; $password = ""; $dbname = "DBNAMES"; ?> <div> <?php $conn = new mysqli($servername, $username, $password, $...
NewToPHP's user avatar
-3 votes
1 answer
70 views

I want to disable select option. Which means nothing should be displayed on select tag it should remain blank. <select> <option value="">ITEM</option> <option value=&...
cenica's user avatar
  • 5
114 votes
8 answers
200k views

How implement subj? when i write: <form> <select> <option value="0">aaaa</option> <option value="1">bbbb</option> </select> </form> then ...
Nick Stavrogin's user avatar
22 votes
3 answers
42k views

Using the following code on select: <select name="province" id="province" required="required"> <optgroup label="Provinces"> ...
Sobasofly's user avatar
  • 379
13 votes
9 answers
47k views

too add a placeholder in select2 i have to add an empty option tag in the code like this <select id="e2" name="rol_id" > <option><option> ...
Mariana Hernandez's user avatar
10 votes
2 answers
12k views

I have a dropdown in an Angular 2 project: <div class="form-group"> <label for="vendors">Vendors</label> <select class="form-control" id="vendor_id" name="vendor_id" [(...
hilda_sonica_vish's user avatar
3 votes
4 answers
10k views

I'm trying to make a <select> where the first <option> is empty, it is not visible in the dropdown and not selectable. I've been researching for like 4 hours. I saw so many working ...
Cristian's user avatar
1 vote
1 answer
2k views

I want null option selected displayed as --Select-- by default in my dropDown. I'm trying to do it like this <select class="form-control" asp-for="EducationId" asp-items="@(new SelectList(Model....
Naila Akbar's user avatar
  • 3,388
2 votes
3 answers
4k views

Okay I have a question, may be simple. But I cannot seem to understand what is going on. I have 3 security question drop down menus. I have javascript on the ASPX page that removes questions/...
Tom's user avatar
  • 1,047
1 vote
4 answers
201 views

I'm dynamically adding values to a select element in my View code like so in my View/.cshtml: @model WebAppRptScheduler.Models.HomeModel @using System.Data @{ DataTable dtUnits = Model.Units as ...
B. Clay Shannon-B. Crow Raven's user avatar
1 vote
2 answers
1k views

I have an select with options which are loaded by ajax. After that user chooses option and additional data is pulled from ajax. Of course at least one these options is selected as soon as select is ...
Jarosław Rewers's user avatar
-1 votes
2 answers
2k views

The dropdownlist is white/empty. I would like to put a title for example Choose. illustration I tried adding <optgroup label="Choose">/ </optgroup> but I want the title to be in ...
mohciniya's user avatar
-1 votes
1 answer
912 views

So i have the following element: <div class="input-field col s12"> <select [(ngModel)]="view.frequency" > <option value="" disabled selected>Vælg hyppighed</option> ...
Marc Rasmussen's user avatar
0 votes
1 answer
352 views

I have a simple GET form that a user can submit to search for posts (real estates) on my WordPress website. My HTML search form looks a little like this: <form method="get" action="...
Senne Vandenputte's user avatar

15 30 50 per page