Questions tagged as 'jquery'

3
answers

Limit for uploading files

I have a project in Asp Net MVC .NET Framework 4 as follows: View: <div class="file-content"> <label class="custom-file-upload"> <input type="file" id="importar-arquivos" multiple accept=".pdf" name="arquivo" re...
asked by 30.09.2016 / 14:52
2
answers

select the same id with different numbering jQuery

I use append to create numbering: $("#navigation").append("<li class='waves-effect' id='page_" + (i + 1) + "'>" + "<a>" + (i + 1) + "</a></li>"); below I have specific css for each page number: $("#page_1")...
asked by 04.10.2016 / 12:28
2
answers

Increase an index to a certain number and then decrease to zero with jquery

How can I make a script in jquery to increase an index by a certain number and then decrease one by one to zero. I'm doing the following to increase but I'd like it to drop to zero by the time it gets to # 5. var index = 0; setInter...
asked by 08.04.2014 / 21:44
2
answers

Enable next Bootstrap Wizard step if checkbox is checked

I'm trying to do a check with a Bootstrap Wizard that I'm using, I need the steps to be enabled if certain checks are checked, otherwise the next step can not be enabled. Ihavethesestepsintheform:<divclass="form-bootstrapWiz...
asked by 13.12.2018 / 19:18
2
answers

How to make jQuery Chosen disregard accentuation at the time of the search?

I developed a site that uses jQuery Chosen , and I wish it did not consider accents at the time of the search. For example, I have a list with several names, and I need to look for JOSE (digit without an accent), but I would like it to sho...
asked by 04.02.2014 / 01:22
1
answer

Remove part of the string

I need to modify a string with jQuery. Suppose I have a variable address: var endereço = "Rua emanuel meira martins 85 cic curitiba..."; The idea is to remove all letters after position 15 and add three dots (...). How can I perform th...
asked by 15.10.2014 / 19:48
1
answer

How to remove dynamically generated table row with JQuery?

I'd like one of the automatically generated columns in the table to have a function to delete the row, but the on click is not working. How should I do this? $(document).ready(function(){ $("#associar1").on("click", function(e){...
asked by 22.10.2014 / 14:31
2
answers

jQuery, window.width () native and window.on resize in the same condition

I would like to know if a better way is possible than this, as it spared the repetition of code: I usually do: if($(window).width() > 800) { // BLAH BLAH BLAH } $(window).resize(function(){ if($(window).width() > 800) {...
asked by 23.10.2014 / 15:02
2
answers

Calculate the size of the div

I'm working on a simple "divs slider" script! Just have a problem, when you start to move left and right it cuts a piece of the divs, I need to move it exactly in a way that it does not cut the divs or appear more than the 2 divs. Follow scri...
asked by 09.11.2014 / 01:04
3
answers

How to capture background value: url ('URL') using jQuery?

I have the following code: <div class="chatUsers" name="chatUsers" id="1"> <div class="chatImageUser" style="background: url('https://vignette.wikia.nocookie.net/starwars/images/2/20/LukeTLJ.jpg/revision/latest?cb=20170927034529')...
asked by 16.03.2018 / 17:54