Questions tagged as 'jquery'

1
answer

How to know which version of jquery was loaded

The code below perfectly shows me whether jQuery was uploaded: if (jQuery) { $('div#home_login').attr('style', 'background: green'); } else { $('div#home_login').attr('style', 'background: red'); } But how do I know which ver...
asked by 29.03.2016 / 16:14
1
answer

Validation of Form with JQuery

I'm a beginner in jQuery and I'm having a hard time doing a form validation with jQuery for the CRM of a church that is as follows : I have an HTML code that is part of a CRM that I'm developing. In this HTML I have a form with on...
asked by 16.08.2016 / 19:24
1
answer

Send via Json data to the controller

I am trying to send via Ajax some data from my form. In this form, I have inputs normal fields and a list of providers that I previously selected through the checkbox. Follow screen: I'mcreatingtheJSONobjectandsendingitviaAjax,butmyli...
asked by 21.09.2015 / 21:09
2
answers

How to make a function wait for jQuery loaded with the async tag

I have a problem to make a function wait for loading the package.js with the async tag <script id="packjs" async type="text/javascript" src="pacote.js"></script> This file contains jQuery and some plugins. The problem is that wh...
asked by 27.11.2015 / 12:36
3
answers

How to format date in Javascript by putting name of the month and day of the week

Hello. Home Have this date: 05/18/17 . Home And I need to convert it to this: May 18th (Thurs) Home May: May, (Thurs): Thursday Home Does anyone know how I do this using JavaScript and jQuery?     
asked by 16.05.2017 / 20:08
2
answers

How to create a toggle button on and toggle off?

I have seen that in some registers, they are using the toggle button a lot. Would anyone know how to do this?     
asked by 30.10.2016 / 18:40
2
answers

jQuery - how to change text after element "i"?

Follow the code below: <div class="file-caption-name"> <i class="glyphicon glyphicon-file kv-caption-icon"></i> Alterar texto aqui </div> I've tried it this way: $('div.file-caption-name i').text('your new...
asked by 04.10.2017 / 18:11
1
answer

Banner floating sidebar with Jquery with scroll

It's the following .. I have a floating banner on my blog that uses the following JS $(function(){ var jElement = $('.element'); $(window).scroll(function(){ if ( $(this).scrollTop() > 2000 ){ jElement.css({ 'posit...
asked by 28.02.2015 / 00:17
4
answers

How to create an element and after a few set seconds remove it?

I need to create a% wc of warning like this: <p id="lblAviso">Salvo com sucesso</p> And remove it after 3 seconds. How to do this with jquery ? Need some label ?     
asked by 20.12.2013 / 17:33
6
answers

How to validate date with AngularJS or jQuery?

I have a simple input that gets a date, how do I validate that date if it's true? For example:    31/02/2006 this does not exist   20/20/9999 this does not exist <input name="data" ui-mask="99/99/9999" kendo-date-picker name="t"...
asked by 08.10.2015 / 16:16