Questions tagged as 'jquery'

2
answers

Change the background color of an element when scrolling the page

I have tried this code without success. $(document).ready(function(){ $(document).scroll(function() { var alpha = Math.min(0.5 + 0.4 * $(this).scrollTop() / 210, 0.9); var channel = Math.round(alpha * 255); $(\"body\").css('backg...
asked by 06.04.2017 / 13:31
2
answers

jQuery - How to get the first character of an input?

I have an input that I want to create custom validations, I need to get its value and validate the first character of the input, what would be the best way to do this?     
asked by 27.09.2017 / 21:57
2
answers

Show items in jQuery, using inner loop [closed]

I have the following jQuery: $(".quantidade_lotes").change(function() { var quantidade_linhas = $("#quantidade_linhas").val(); var quantidade_lotes = $(".quantidade_lotes").val(); var quantidade_dividida = (quantidade_linhas/quanti...
asked by 26.10.2016 / 18:29
2
answers

ASP.NET My JavaScript is not giving away [closed]

Hello, I'm using Javascript to create a number in a TextArea when the Enter key is pressed, for example: 1. Olá 2. Isto é isto 3. Fim This JavaScript, however, is not working and I do not know why, here is the JavaScript: <script type=...
asked by 21.06.2017 / 15:12
3
answers

Footer is not positioned at the bottom of the page

My css: #rodape { position:absolute; bottom: 0; } .RodapeFaleConosco { float:right; } .RodapeTermoPolitica { float: left; } Now my code in jquery to load html str += '<div id="rodape">'; str +=...
asked by 07.05.2014 / 00:38
3
answers

How to hide a div when it is empty? [closed]

How do I do it? Note: I have seen an example using thymeleaf but it does not work, that is, the namespace does not recognize the project. Someone there to help?     
asked by 24.04.2016 / 07:15
2
answers

how do I compare a session?

I would like to know how to compare a session of a page php with ajax for the simple reason to display a alert more beautiful to the client the comparison that I have and the following it compares not part in php...
asked by 29.12.2015 / 19:59
3
answers

Open php file in ascending order

I have an update / folder with PHP files, like this: Thesearemysqlupdatefiles,whenitisupdatedshortlyaftertheservershutsdown.WhentheclientdoesnotaccesstheAdmin,thefilestaysthere,whenwereleaseanotherupdate,thenitaddsthefileofthepreviousversion...
asked by 03.01.2016 / 12:44
1
answer

How to import external JavaScript and put masks in inputs?

Hello, how are you? I saw some tutorials on the internet to put masks in input in HTML, and since I am new to JavaScript I imported the external library as shown below, but I must have imported wrong or used the function incorrectly because t...
asked by 06.10.2017 / 19:16
1
answer

How to minimize jquery script

Is there any way to minimize / simplify this script in jquery? $("#men").click(function() { $("#men").addClass('active-men').addClass('selected'); $("#wom").removeClass('active-wom').removeClass('selected'); $("#opt").removeClass('...
asked by 27.05.2017 / 21:46