Questions tagged as 'javascript'

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
1
answer

Carousel Plugin with JQuery [closed]

I need to put a Carousel (Slider) on a homepage, and I thought about doing it with JQuery, can someone tell me some plugin to do this, other than the bootstrap carousel?     
asked by 17.05.2018 / 16:55
1
answer

Check the predominant color in the image

I have the following code that I will put below, which is responsible for picking up the image from which the user places. In this case, the variable img returns me only the url of the image. I wanted to get the image and see what color p...
asked by 17.05.2018 / 03:08
2
answers

Enable inputs as required

How can I make each input field filled in the next one appear in jQuery? It would be so, select unit then the user selects the period of the party, after choosing the day the last field to choose the type of party appears function marcaDes...
asked by 21.05.2018 / 21:41
2
answers

Javascript find part of text and replace (with variable)

I have a photo slideshow that when you click on the photo it opens the larger photos. In the larger photo gallery, I only need to pass start:nºda foto so that it starts from the clicked photo. photo number is the id that is passed by t...
asked by 17.05.2018 / 17:47
1
answer

How events work in jquery

I'll show examples of just the click event to make it simpler to explain, but this question is about any jquery event. When I started using jquery I only used the click event as follows: $("button").click(function(){ alert('ok'); })...
asked by 15.05.2018 / 22:22
2
answers

Make user-written data stored in a JS object

I have this code and I wanted to know how best to get the user to push a button and, from there, store the data requested by the page in the JS object and, after that, display the message written in the code . Could someone help? Thank you. J...
asked by 23.05.2018 / 22:57
1
answer

Problem in storing combobox label in HTML

I have the following HTML combobox: var concelhos = $('select[name="Concelho"] option'); $('select[name="Distrito"]').on('change', function () { var Distrito = this.value; var novoSelect = concelhos.filter(function (...
asked by 22.05.2018 / 20:51
1
answer

Change div when click / mouse over with jquery

HTML: <div class="row"> <div class="col-md-4"> <a href="#" class="qualificationbox"> <h2 class="title">Junior</h2> <img sr...
asked by 21.05.2018 / 13:33
2
answers

JS and HTML - Publication of Quotas

I created a javascript code where it shows me several random texts, but these only change with the refresh of the page. And I wanted them to change every 5 seconds without refresh. Javascript: (function() { var quotes = [ { t...
asked by 21.05.2018 / 02:22