Questions tagged as 'jquery'

2
answers

How to remove the characters from a certain point with Jquery?

How do I remove everything I have before ? in this string smartphones?marca=3 or celular?marca=4 displaying only what is after the " ? " question mark with Jquery or Javascript?     
asked by 15.09.2015 / 19:54
2
answers

jquery form mask

I'm trying to validate the form field using jquery, if the size is greater than the number of cpf it puts the cnpj mask in that same field var tamanho = $('.cpfcnpj').length; if (tamanho == 11){ $(".cpfcnpj").mask('000.000.000-00'...
asked by 19.11.2015 / 08:49
2
answers

Load remote content in a modal Twitter Bootstrap

I'm trying to load the contents of a modal from a remote page. This is the code that I am using to run the tests. $('[data-load-remote]').on('click', function (e) { e.preventDefault(); var $this = $(this);...
asked by 16.09.2015 / 17:46
2
answers

How to clone an object in javascript? [duplicate]

I'm trying to pass one object per parameter of a function, but I do not want that object to change. For this I want to pass a clone parameter. Because in javascript, by the tests I did, the object is always passed by reference. Example:...
asked by 26.11.2015 / 18:00
2
answers

base64_encode in javascript [duplicate]

I have an image in the database stored in blob format, I have to use base64_encode in php before returning the ajax request and this is leaving the process kind of slow on the server side. It is possible to do or have some native function i...
asked by 03.12.2015 / 18:57
1
answer

How to add a functionality to jQuery? [duplicate]

I have some ready-made functions that format date, take only strings numbers, block fields to not allow letters etc. Examples: function formatarData(data){ // conteúdo da função return data; } function somenteNumeros(campo){ //...
asked by 07.01.2016 / 13:44
1
answer

Get the AbsolutePath of the input type="file"

I'm trying to get the full directory path through the file type input, but so far I can only get a previous folder, for example, I have the folder in the path C: / user / Documents / Images / Yesterday so I would like to I can get the whole path...
asked by 06.01.2016 / 02:50
6
answers

On Click only works once

I have the following code to show and hide content, but it only works once. When I click again to hide, nothing happens. $(document).ready(function() { $('li[name=music]').off().on('click', function() { if ($(this).children().css('...
asked by 14.12.2015 / 20:51
2
answers

How to pass value to label in modal

I fill in the inputs of my modal, as follows: <input type="text" id="txtDescricao" name="txtDescricao" minlenght="4" required> Script: modal.find('.modal-body input[name="txtDescricao"]').val(descricao) And when I have a label...
asked by 15.12.2015 / 11:26
1
answer

How to host my angular application

I have the following directories in my angled application: node_modules/ src/ --client/ ----/app/ ----/index.html --server/ package.json print the files I would like that when the user accesses my site he redirect directly to src / cl...
asked by 27.08.2015 / 04:01