boostrap component (for date,month,year in three dropdowns) sompylasar/bootstrap-datepicker-select css not working

15,446

i went with the classic approach with foreach

                    <div class="form-group">
                        <label for="selectDate">Date of Birth:</label>
                        <select id="selectDate" style="width:auto;" class="form-control selectWidth">
                            @for ($i = 1; $i <= 31; $i++)
                            <option class="">{{$i}}</option>
                            @endfor
                        </select>
                        <select id="selectMonth" style="width:auto;" class="form-control selectWidth">
                            @for ($i = 1; $i <= 12; $i++)
                            <option class="">{{$i}}</option>
                            @endfor
                        </select>
                        <select id="selectYear" style="width:auto;" class="form-control selectWidth">
                            @for ($i = 1900; $i <= 2015; $i++)
                            <option class="">{{$i}}</option>
                            @endfor
                        </select>
                    </div>

If anyone figures out that plugin please write it in comments or as an answer.

Share:
15,446
MePo
Author by

MePo

Updated on June 04, 2022

Comments

  • MePo
    MePo almost 2 years

    Here is the component https://github.com/sompylasar/bootstrap-datepicker-select

    I need three dropdowns for date, month, year like this component has (if you look in index.html) and when you open this example it works, but when i tried to implement it works as it should (js part), except css doesnt work (it isnt as in example), now i know i included all css and js files. And also ive tried with his bootstrap css (which he included) and then it works (dropdowns look like his), but it disrupts all my other pages.Now for my question, is there a simple solution to fix this problem (im new to bootstrap),or is there another component for the same thing or should i just take standard dropdowns and fill them with date, month, year with foreach. Thank you in advance