Questions tagged as 'front-end'

3
answers

Bootstrap Carousel with two vertical items

The challenge is to: Make a Carousel using Bootstrap , which displays two items at a time, aligned vertically. Here's an outline of the idea: IfoundsomeexamplesofCarouselusingmultipleitems,butnotverticallyaligned. link I tried to impleme...
asked by 25.09.2014 / 22:33
2
answers

How can I create an event where I click on a div that contains details of a product and after that this product opens on the same page?

What I want to do: A section on my website where you have a div with a title, an image and a text that represents something, for example a drums. And that when I click on this div to see all the information regarding this product / represen...
asked by 21.07.2018 / 01:59
3
answers

How to show the current date when the page loads

I want to display the current date on a particular div while loading the page, I've already done a functional sketch of the code, however I'm using the button . Follow the code: function formataData(data = new Date()){ var dia = dat...
asked by 22.07.2018 / 20:43
3
answers

Clear select field

I have created an Ajax request to populate a select field when the user clicks on a certain specialty to appear only the trained professionals for it. However, when clicking on another specialty the name of other professionals prevail there. I...
asked by 29.05.2018 / 20:55
2
answers

Get the value of a radio button with Vanilla Javascript?

How to select a radio button using pure JS and pick up the user-defined value? Follow my HTML: <div class="form-check form-check-inline"> <input class="form-check-input" type="radio" name="cadastro" id="professorCadastro" value...
asked by 16.05.2018 / 16:49
2
answers

I can not add value in Array

I want to add the name entered at the prompt into an array and display the names in a table but when adding it it displays the null value in the table. var nomes=[]; var indice=[]; var i=1; window.onload=function(){ do{...
asked by 29.09.2017 / 00:09
1
answer

Rails Weekly 5

I need to implement a simple calendar in Rails for presentation of daily schedules, I have adapted the model and the controller to add new schedules with date and time, but the difficulty is to present instead of the list as follows: I have...
asked by 27.09.2017 / 17:18
1
answer

Can not cast from Object to JSP

I am developing an application using JSP and servelt in which I want to get the total amount of records from my tb_motorist table, I created a servelt in which I passed the method that makes the query and created a session but when I get the ses...
asked by 13.09.2017 / 00:12
1
answer

How to share a property with other components in React?

Hello, I'm new to React and I have a question about sharing properties. For example, I want to have a parent component that will have a "visible" property, and I want to share it with all my child components, so I can use it this way, for ex...
asked by 14.02.2017 / 02:04
1
answer

Transforming clicks into JS function

I'm trying to turn my clicks into functions, since the code is being repeated in link This is the original code: $("#div1").click(function() { $("#widget-body1").slideToggle("slow"); }); $("#toggle1").click(function() { $("#widget...
asked by 02.04.2017 / 02:25