Questions tagged as 'javascript'

1
answer

Javascript Function call with parameter

I need to call a Javascript function where one of its parameters is a function. In this case, how do I pass parameters within the function call? Ex: (Function that will be called first: function getWS(data, success) { $.ajax({ typ...
asked by 30.07.2017 / 21:26
2
answers

Appear button when mouseover javascript

I'm developing an application in jsf, css, javascrip where when you move the mouse on the product there will appear a "Learn more" button and when you take the mouse the button know more disappears, only the first item is functioning for the res...
asked by 05.07.2017 / 22:00
2
answers

document.getElementById does not work on Firefox and Edge [closed]

** I have 1 page where I load all pages within a <div content> : <!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-sca...
asked by 05.07.2017 / 15:48
2
answers

How to pass the value of a php variable into a javascript link inside a script

I have a script with a link and a variable, how to pass the value of this variable inside the link in the script? if($mensagem_post == "1"){ echo'<script> swal({ title: "Você tem certeza?", text: "Este arquivo não poderá ser...
asked by 24.06.2017 / 23:47
2
answers

Send form only if any input is changed

I have a form that opens in a modal bootstrap that is populated dynamically with jquery, this form is enabled for editing, and in this modal has a "Save changes" button, which I want to perform an action only if any field form is changed from th...
asked by 26.06.2017 / 07:49
1
answer

Bug with scrollbar in plugin select nice

Well I'm customizing the nice select plugin, however I'm having a bug where the scroll bar on the page gets huge, and the select is closed. How to make it appear only when the select is opened? (function($) { $.fn.niceSelect = function(...
asked by 24.06.2017 / 19:58
2
answers

Pass ids as parameter to function js

I have function that I would like to receive the id values of some fields of quantity, unit value, and result. But I'm not getting it. ' String.prototype.formatMoney = function() { var v = this; if(v.indexOf('.') === -...
asked by 21.06.2017 / 16:54
1
answer

Change background of a section [closed]

the section has a defined background How do I move the mouse over the image? 1 Change the background of the section overlapping the current one, remove the mouse back. <section class="modules"> <div class="container"> <...
asked by 21.06.2017 / 21:38
2
answers

Show and hide caption with jquery

I'm trying to show and hide a div if the slide div has the active class. The problem is that the div is always displayed, even when the bootstrap slide changes and the active class is removed. <div id="carousel-example-generic" class="carou...
asked by 21.06.2017 / 16:22
1
answer

How to bring the javascript file to the wordpress theme via code

I have two javascript files inside a folder called (js) and I want to know how to call it in the theme code I'm creating. But how do I do that, I know I have to use the functions.php or am I wrong? I want you to help me because I'm new to creati...
asked by 11.09.2017 / 19:27