Questions tagged as 'javascript'

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
1
answer

Repeat audio every time button is clicked - Javascript and HTML

I want the audio to repeat every time the button is pressed. Instead, it only repeats after the audio finishes. (NOTE: I'm using JSX) Javascript playShot() { var audio = document.getElementById('shot'); audio.play(); } HTML <...
asked by 14.02.2018 / 00:41
2
answers

Collapse bootstrap 4 does not work mobile [closed]

I'm having a collapse problem with bootstrap 4 in mobile mode. It opens normally but does not close, I've spent a lot of time trying to solve it and even more searching! Please help me ... Please check the correct resolution as the image....
asked by 30.11.2018 / 18:26
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

How to format dd / mm / yyyy for mm / dd / yyyy

I'm getting this date in a variable: var data = "23/03/2012 00:00:00" I need to put this date in an input type date. When I try, the message says that I need to pass through the format (yyyy-mm-dd) I found this function that formats date...
asked by 28.03.2018 / 19:43
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
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
2
answers

I want to search by name of any function from a search field

Folks ... how can I make a system where input text gets a name of function .. then it searches its name internally with the name that is in string . kind ... In Html I do the following: <input type="text" id="seuInput...
asked by 15.05.2018 / 04:34
1
answer

Problem with iframe

I try to open a simple link in an iframe, and it throws that error:    Refused to display in a frame because it is 'X-Frame-Options' to 'sameorigin' This is the complete code: <html> <head> <meta charset="utf-8" /&g...
asked by 18.05.2018 / 21:11