Questions tagged as 'jquery'

1
answer

Replace ignoring tag and returning as string

I think I've seen this problem here once, but I could not find it at all or search the internet (I forgot what words to use in the search because I think I've dealt with it before but it gave me a total blank). > I'm making a replace of...
asked by 16.02.2018 / 17:49
3
answers

Are there any "parse" commands for jquery?

I get a string type: $ 10.00, I wanted to change it to 10.00 so I can calculate it, I tried the code below, but it did not work. for (let i=0; i<numColunas; i++){ valor = (colunas[i].textContent).parse("R$", ""); alert(valor);...
asked by 31.01.2018 / 17:33
2
answers

Know if at least one checkbox is selected within an array of laravel

I have a laravel array that renders checkboxes: @foreach($images as $img) <div class="col-md-3"> <img src="{{url('gallery_images')}}/{{ $img->image }}" class="img-thumbnail" alt=""> &l...
asked by 29.10.2018 / 15:32
2
answers

Repetitive excerpts of HTML

How to assign blocks (or redundant sections) of HTML to a variable to save lines and simplify use? Imagine several DIV or TABLE CELLS that are practically identical at 90%. How to save a snippet of HTML and retrieve it just by mentioning its var...
asked by 27.03.2018 / 05:08
1
answer

Problem with AJAX Request

I'm making a user login system. When the user submits the form the AJAX request is not working and the page changes to login.php JS $("form").submit(function() { if ($("#login_username").value() != "" && $("#login_password").va...
asked by 04.09.2016 / 19:04
2
answers

Keep a dropdown menu always open

Using Jquery DropDown plugin : link To create various menu styles, it is simple and easy to customize. I wanted to see if it would be possible to keep it always open, - after you clicked to open. Do not close when clicked on the body, either...
asked by 21.05.2018 / 23:02
3
answers

How to simulate the event click on a select when hovering over a div?

I have the following HTML: <div class="selectOptions"> <select name="select" id="select"> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> &l...
asked by 29.09.2017 / 15:53
2
answers

jQuery apply function on all div with same name

Hello, I have a html with several fields that repeat the same div, I want to take advantage of these divs to apply a jQuery function on all of them. What would be the best way to do this? how many times does the class repeat itself and apply a f...
asked by 23.08.2017 / 15:21
3
answers

Changing button span via jQuery

I have a button that in the click of the same directs an ajax request to an external file that adds a product, however that does not matter much in this case. I wanted to manipulate what is written in the span of button. Every time the us...
asked by 30.08.2017 / 21:32
1
answer

how does the 'e' of javascript work? [duplicate]

In some of the codes I see, some people use the 'e' character in functions like: function NomeDaFuncao(e){ alert("teste"); } I would like to know how it works, what it does, and some examples where I can use it.     
asked by 30.08.2017 / 22:37