Questions tagged as 'javascript'

0
answers

Table with drag and drop event does not work on mobile

I have a page that user to have the freedom to sort table, and this drag and drop event on the computer works perfectly, but on tablets, mobiles does not work, what should be done for the perfect workings of this event on mobile devices? In...
asked by 02.07.2018 / 23:13
0
answers

DateTimePicker post and book the next business days

Good morning! I'm having a big problem, I use the Bootstrap DateTimePicker to include a calendar just above a stopwatch on an html page, but now, on this calendar, the next 5 business days after the current day were requested to be demarcated...
asked by 03.07.2018 / 14:17
1
answer

Field input result NaN

I have the following code: <script type="text/javascript"> function id(el) { return document.getElementById( el ); } function altura( un, quanti_imagens ) { return parseFloat(un.replace(',', '.'), 10) / parseFloat(quanti_imagens.repl...
asked by 27.07.2018 / 20:03
1
answer

How to customize select2 messages?

I want to remove Select2 messages: Searching; No matches found; Follow the code below: Html Page <input id="ajaxSecretaria" type="hidden" style="width:300px" /> Script: $(function () { $('#ajaxSecretaria').select2(...
asked by 27.07.2018 / 17:36
0
answers

Insert google search script into the search bar I did

I use my search bar on my site and I will use the google search system, but I did not necessarily want to use the bar that google generates, I wanted to use mine, can anyone help me? (function() { var cx = '011166474705386424309:un7tm...
asked by 27.07.2018 / 00:57
1
answer

Formatting Javascript Dates

Could you please help me out? I would like to use the function below in a logic that I am creating, but I would need the function below to return to me only the last week of the month, I can not understand how to make the changes in it to wor...
asked by 27.07.2018 / 17:27
0
answers

How to change a meta tag in a SPA?

I have a SPA made with pure javascript, and I needed to change the meta description after an event, for example, a click. Using javascript I can change, but I think that for the Google crawler this does not make any difference. Is this cor...
asked by 26.07.2018 / 22:57
1
answer

Put transition effect on div that is added class according to scroll

I am trying to add a transition in a div where I add a class according to the scroll, but it is not working. Could anyone try to help me understand why? window.addEventListener('scroll', function(){ var pageScrollY = window.scrollY...
asked by 27.07.2018 / 00:02
1
answer

Add class to the link menu by scrolling in the corresponding section

var className = "scroll-link"; var links = document.getElementsByClassName(className); for (var i = 0; i < links.length; i++) { links[i].onclick = scroll; } function scroll(e) { for (i = 0; i <= links.length; i++) {...
asked by 27.07.2018 / 18:12
1
answer

How to disable Validations when doing a Submit in the change event of a DropDown

I have a modal with a dropdown, where, whenever an option is selected, a submit is made and the template is sent to the action to be edited and then returned. The problem is that Validations get in the way, is it possible to disable validations...
asked by 28.07.2018 / 01:01