Questions tagged as 'jquery'

1
answer

Close Menu with SlideToggle

Hello everyone, I have a menu for mobile "hamburger" and I want it to close when I press some menu link. Menu HTML code: <div class="menu"> <button class="hamburger"> <img src="images/responsive/cel_retrato/ham.pn...
asked by 20.11.2015 / 18:26
1
answer

Time zone in JS

$(function() { var d = new Date(); var hora = d.getHours(); if (_userdata["user_level"] > 0) { console.log("Você é da staff e pode acessar o fórum."); } else if (hora >= 22 || hora <= 7) { $('body').html(...
asked by 17.11.2015 / 01:52
1
answer

Load datepicker in modal

Good morning. I'm not able to load the datepicker into a modal called via ajax, would someone have an example code? MODAL: <div class="modal fade" id="modalaltera" tabindex="-1" role="dialog" aria-labelledby="myModalLabel"> <div...
asked by 19.04.2016 / 15:59
1
answer

Compare current url with href

My scenario is as follows, I have 3 links and I need to identify which one is the same as the current url . <a href="meulink">Menu 1</a> <a href="meulink2">Menu 2</a> <a href="meulink3">Menu 3</a> The wa...
asked by 05.02.2016 / 18:30
1
answer

Load javascript function automatically into body tag

I need your help. I'm using LoadGo JQuery and would like to know how do I call a certain function to load automatically from the body tag, so that when you click the page, it opens automatically. I tried to put it like this: body onl...
asked by 07.02.2016 / 02:39
1
answer

How to remove duplicate rows from txt using php?

Well I'm creating a div that updates every x seconds and I'm displaying the currently logged in users, however my code is inserting each update the same record. Is there any way to exclude repeated lines? Here is the code I'm currently...
asked by 10.02.2016 / 00:13
2
answers

jQuery each - Clarification

I need every x seconds a li of my menu to be hidden and I have this code: $('.area-menu .close').click(function(){ delayed(); }); function delayed() { var liMenu = $('.area-menu li').not('.marginless'); var time = 1000;...
asked by 10.02.2016 / 21:34
1
answer

How to treat a decimal field with no boxes after the comma in a jquery mask mvc c #

I have a model with the following definition: [Display(Name = "Quantidade / Volume:")] public Int32 RoQuantidade { set; get; } In my View to fill in the data when empty, that is, that have not yet been written, using maskMoney work...
asked by 08.04.2016 / 19:19
2
answers

Pickadate Angular - Translation

I'm using the Angled pickadate only that it is in English, I need to leave it in Portuguese, could anyone help? Here is the code: $('.datepicker').pickadate({ selectMonths: true, selectYears: 15, language: 'pt-br' }); I p...
asked by 15.04.2016 / 19:44
1
answer

How to retrieve the value of several dropdownlist (only filled in)

How can I retrieve the value of several dropdowns (only those filled in) The function below does not work correctly. For example, if I select only the second combo has output: , 2 He takes the void as if it were a selection. Can you work aro...
asked by 26.09.2015 / 22:23