All Questions
39
questions
0
votes
1
answer
372
views
A dynamic dropdown (selectbox) menu in Rails with jQuery is not reversible
On a website form controlled by Rails 6.1, I want to implement a "dynamic" or cascade dropdown menu so that the choices in the second dropdown varies depending on the selected item in the ...
1
vote
1
answer
67
views
JQuery automatically check a checkbox and show dropdown menu
I want to check a check box automatically and show the drop-down menu if certain condition is met.
before i had it like this. But now I want the the checkbox to be automatically be checked and toggle ...
0
votes
1
answer
290
views
Pre Select an option in the select box in a modal depending on other selected value from another page
I have an accordion here is the code:
<div class="accordion">
<div class="accordion-title accordion-area">
<a href="#joinus/jr-software-engineer/" id="...
1
vote
0
answers
223
views
Dropdown-menu disappears when I click a form inside it
I have a dropdown for Login in a Ruby on Rails project. However, when I click the the forms inside they do not respond.
If I put a z-index on the class "wrapper-dropdown-3" the form responds and the ...
1
vote
3
answers
5k
views
Bootstrap 4: How Do I Close a dropdown-menu when a dropdown-item is clicked?
I have a Bootstrap dropdown menu in a navbar. You need to click the menu to open it. If you click outside of the menu, it will close. If you click one of the items (class dropdown-item), it remains ...
0
votes
2
answers
1k
views
Dropdown menu with Bootstrap 4 only drops once in Rails
I recently updated to Bootstrap 4.0.0, I'm running Rails 5.1.5 and I installed BS as specified in the README in their github.
Furthermore it's been added to package.json for yarn.
In gemfile : gem '...
1
vote
1
answer
2k
views
Populate dropdown list upon selecting a value from another dropdown list
I'm trying to populate one drop down list based on the selection of another drop down list in my rails project. The only difference is that both drop down lists should be populated from one model.
...
0
votes
1
answer
33
views
Filtered dropdowns
This has been bothering me for a while, I am creating a web app which has the potential of having a ton of records. People will be able to navigate from record to record using the select dropdowns. My ...
0
votes
0
answers
753
views
How to use dynamic dropdowns as a filter for searching in rails
I am trying to implement 3 dropdowns as an additional filter for my search functionality. I have a model called Bottle and this model has 3 columns: category, country and grape. Furthermore, I have ...
3
votes
2
answers
3k
views
Rails 4 - dynamically populate 2nd select menu based on choice in first select menu in a nested form
I have models for Project and Ethic in my Rails 4 app.
The ethics view has a nested fields form (using simple form simple fields for) contained in it. The ethic form fields are nested in the projects ...
2
votes
1
answer
2k
views
How to show Font Awesome icons on Rails select_tag
I have a dropdown in my form_tag similar to the one below for my @icons = Icon.all model:
<%= select_tag :icon_id, options_for_select(@icons.collect{ |u| [u.icon_code, u.id] }), class: "form-...
0
votes
0
answers
31
views
Keep selection history Ruby on Rails
In my homepage I have multiple dropdowns which limits the data to be viewed, exactly 5 dropdowns. What I have done is as the user selects some option the url becomes www.mywebsite.com/selection1/XX ...
0
votes
1
answer
124
views
Two dependent drop down menu items from arrays in model in Rails
I have googled/stackoverflowed for hours but did not find any thing that matches to my requirements. I am new in rails and I am working on a bug tracking system in rails 4.2.4. Here I have a class ...
0
votes
2
answers
67
views
Rails & JS: Make panels generated by .each function toggle independently
I am having trouble having only on dropdown dropdown at a time. The problem is that I am using a .each fucntion. Therfore I do not know how to make it so that each dropdown has a specific id or class ...
1
vote
1
answer
151
views
Dynamic Menu, Ajax, Ruby
Hey folks a nooby noob here,
My application has Dynamic Drop down menus for Category and Subcategory. When a category is selected the corresponding subcategory will change and display the category's ...