Questions tagged as 'javascript'

2
answers

Javascript - Validation of first and last name with capital letters at the beginning

Good evening guys, I made a javascript to correct a person's registry in order to create the First and Last name , for example, João da Silva. p> I got what I wanted when the user types everything in the box. However, if the user types ever...
asked by 07.10.2018 / 01:35
2
answers

Print only the first and last date

Ajax request returns some information, including data_inicio and data_fim of a command, however I need to display only dates that are in red, it would be:    23/12/1936 à 12/12/1944 Ineedawaytomergeanddisplayonlythem.Atthem...
asked by 19.12.2018 / 18:29
1
answer

Image change as the form field is chosen

I want when I select, for example, the Ches option replaces where% is NOME automatically in HTML. .goleiro-1 { height: 70px; width: 70px; background-color: #fff; border-radius: 50%; box-shadow: 0 4px...
asked by 20.12.2018 / 19:13
1
answer

Change behavior default chips materialize

Can you add a tag to the user by clicking the enter E in the space ? By default the materialize chips it adds only if you click enter ... I did not find anything about it, the materialize documentation is pretty bad. For example, if you...
asked by 21.12.2018 / 19:53
1
answer

How to set the percentage on top of the chart using ChartJS?

I have the following graphic: var chartData = [{"visitor": 39, "visit": 1}, {"visitor": 18, "visit": 2}, {"visitor": 9, "visit": 3}, {"visitor": 5, "visit": 4}, {"visitor": 6, "visit": 5}, {"visitor": 5, "visit": 6}] var visitorData = [...
asked by 18.12.2018 / 12:10
2
answers

Fields validation failed

I have a form that only enables the forward button when the field is filled in or selected. The fields Subscriber , Subscriber Name , and Installation Date are allowing you to delete your content after you fill it out. The problem is that...
asked by 27.08.2014 / 15:13
2
answers

How to reset a selection menu (selectmenu) when changing another field using a function?

I'm trying to make a "select menu" ( selectmenu ) be reset when I enter a value by hand in a text field, but although I've tried countless solutions that I researched right here in Stack Overflow and other sites, none worked. Below is m...
asked by 20.08.2014 / 04:03
1
answer

How to use the calc () function with js?

I need to decrease%% of% of% with javascript .style Attempts: circulo[0].style.left = "calc(100%" + "-90px)"; circulo[0].style.left = "calc(" + 100 +"%" + "-20px)";     
asked by 18.09.2018 / 23:26
2
answers

Compare the value of a column with the checkbox

I'm trying to compare the value of a column of a table , so depending on what is selected, show or hide the field, I got in this code: td = tr[i].getElementsByTagName("td")[3]; console.log(td); debugge...
asked by 16.10.2018 / 22:06
1
answer

Previous button disables when clicked on next

I have two buttons that are created according to what comes from api: <div class="col-2"> <button type="button" class="btn btn-success button-ok botOk" value="${element.NUMOS}" id="${element.COD_PROD}" onC...
asked by 17.10.2018 / 16:22