Questions tagged as 'javascript'

1
answer

Masking for date field

Anyone who has used type="date" fault5 has certainly noticed that although the date is visible in DD / MM / YYYY format, when you retrieve value from JavaScript , it is in the format YYYY-MM-DD . What I want is precisely to reproduce thi...
asked by 08.04.2014 / 16:23
2
answers

Apply effect only on target element

I have this html of registered cards: .lista-cartoneira h1 { font-size: 1.2rem; margin: 12px 0 12px 0; font-weight: 500; } .lista-cartoneira h2 { font-size: 1rem; margin: 12px 0 12px 0; } .lista-cartoneira...
asked by 20.11.2018 / 13:21
2
answers

How to limit an input according to the variable?

I have 2 fields as shown below: <div class="col-md-4"> <label for="descricao">Valor título </label> <div class="input-group"> <span...
asked by 22.11.2018 / 19:41
1
answer

Catch an HTML color As IMAGE [duplicate]

How to capture a color in HTML but this color must be similar to the image ... EXAMPLE: (THE BACKGROUND AND APPEARED WITH THE IMAGE) EXAMPLE02:(REPAIRTHEBACKGROUND!) How can I do this to get the color in HTML , so can I use this...
asked by 11.12.2018 / 22:04
2
answers

Request Method Changing from GET to OPTIONS alone

I have the following code: $(function() { $('#method').change(function() { var method = $(this).val(); if (method == 'GET' || method == 'DELETE') $('#json-group').hide(); else $('#json-group'...
asked by 13.06.2014 / 22:04
1
answer

Subtract date to get countdown

I currently have the following code: var now = new Date(); var countTo = 50 * 24 * 60 * 60 * 1000 + now.valueOf(); $('.timer').countdown(countTo, function(event) { var $this = $(this); switch(event.type) { case "seconds":...
asked by 17.06.2014 / 16:18
1
answer

DropzoneJS - View files - How to do?

How do I dropzoneJS view files that have already been uploaded? I followed the steps in the documentation and are uploading normally, but do not display the already uploaded files. My form HTML code: <form action="upload.php" class="drop...
asked by 17.06.2014 / 16:17
2
answers

Remove JS file via JS

I have a site that has the fixed side menu and the other part loads the pages. For each page of the site I made a js file. For example: Home.jsp I have the file home.js, Contacts.jsp I have the contacts.js. I'm loading the pages with the jque...
asked by 16.06.2014 / 14:45
1
answer

Make all external links open in a new tab except one!

Oops, I have a script that identifies all external links and forces open in new tab ... <script> jQuery(document).ready(function($){ $('a').not('[href*="'+document.domain+'"]').attr('target', '_blank'); $('a').not('[hre...
asked by 16.10.2018 / 22:40
1
answer

Javascript and AngularJS - Good practices to capture data of a logged in user [closed]

Sirs, good afternoon. I would like to ask you which best practice you use to capture the data of a user logged in to a web application with a database. For example: Assuming that I created a site where the user signs up, logs in with his emai...
asked by 19.10.2018 / 18:50