Questions tagged as 'javascript'

2
answers

Bootstrap styles do not load

I have a website and am using Bootstrap but for some reason when I go to index.php everything works as it should, but if it is to index.php / (with the end bar) the HTML code loads more the rest, not css or js or anything.     
asked by 24.03.2014 / 18:38
2
answers

Get text from a select within a javascript foreach

Good afternoon Personal I have a select that dynamically adds row to row within a table, but my code only takes the text from the first row. I would like to get the text according to the line and move to an input hidden. MY DYNAMIC SELECT...
asked by 26.11.2018 / 17:41
3
answers

Find values in JSON by multiple keys

I have the following JSON: { "$SP": { "0": "92", "1": "00:01:36.340", "2": "00:05:48.929\n" }, "$MT": { "0": "91", "1": "00:00:34.187", "2": "00:18:44.001\n" } } I need a function that looks for the key name...
asked by 14.11.2018 / 23:01
2
answers

Display a different video for each visitor [closed]

I'm making an HTML page with JavaScript and would like for every user who visits it to change the initial video. I have 5 videos, so on the first access the video 1 would be displayed, then the video 2 and so on, until in the sixth access it...
asked by 30.11.2018 / 22:22
2
answers

Make JavaScript work on a certain screen size

Hello! I'm setting up a responsive site and using some bootstrap layouts to make the site. The problem is that the layout I liked the most was not done with a good menu for a lot of content, especially for users with a screen less than 768px....
asked by 14.04.2015 / 16:51
1
answer

Concert menu with option open by default

I'm creating a Accordion Menu , based on a example that I found on the internet, however, I am struggling to try to make it an open option by default, also in this example here. Could anyone help me? //faq toggle stuff $('.togglef...
asked by 03.12.2018 / 22:46
2
answers

Use promise in a Web Worker

To use Web Workers for certain things, can you use a promise for when it's done? Type like this WR.postMessage({taskID: 'g_b_i'}).then(function(nonce){ console.log(dT(), 'Sending parameter nonce: ', nonce); }); nonce w...
asked by 16.04.2015 / 01:48
1
answer

Bug when validating a field with word limitation using Jquery validate

I have a form where the user needs to enter his full name, so I used the jQuery Validate plugin to make these validations, and I also added the additional methods , where there is a function called minWords that you place the minimum quanti...
asked by 02.01.2019 / 16:10
2
answers

Get Radio Button value in Foreach- JS

I am trying to get the value of radio in JS using foreach foreach($produtos as $produto){ <input type="radio" id="<?php echo trim($produto->CODIGO); ?>" name="plano_ouro" value="<?php echo trim($produto->...
asked by 01.12.2014 / 12:16
1
answer

jQuery / Select the item within an array, referring to the position of the loop

Good afternoon friends, I'm having trouble finding a logical solution to solving my problem in a loop (for) Within a table, we have price information in the tag: <p class="preco-plano">R$44</p> and I created a blank tag:...
asked by 03.01.2019 / 19:04