Questions tagged as 'javascript'

2
answers

How to check if Internet Explorer is smaller than version 10?

I need to do a browser check to see if it is Internet Explorer and if it is smaller than version 10. How to do it? PS: My idea is to tell the user if you are using a version lower than 10 that downloads a more current browser.     
asked by 11.06.2014 / 23:06
1
answer

Change Values in Modal - C # MVC JavaScript

I have the following javascript code in my project that takes attribute values when the user clicks the rename class button and calls a modal: <script type="text/javascript"> $('.rename').on('click', function () { var $this =...
asked by 05.04.2017 / 10:13
2
answers

How to check if a DIV has an ID

Is there any way to check if a div has an id, using jQuery? I can check if it has an ID value, like this: <div id="main">...</div> if ($("#main").length){ // resto do código aqui } But what I need is to know if DIV ha...
asked by 12.04.2017 / 02:10
3
answers

Click on a tr to open a link

In the site I'm doing, there's a need to click on a row of the table it redirects to another page, but the row's id's are dynamic because each row should redirect to a page that shows more information. My View: @foreach (projeto1.Entidade.P...
asked by 21.03.2017 / 15:05
1
answer

Move image with JavaScript

Well, I'm trying to make a cycle that makes the image move forward to the right of the screen ... until then I got it. After she arrived, I want her to go down a little and go back to the left of the screen, when she arrives, go down a little an...
asked by 29.03.2017 / 12:30
2
answers

JavaScript display date from the day before the current date

I have the following script that works fine, but at the turn of the month it does not correctly "mounts" the date, for example today, it is showing date 20181000 var today = new Date(); var dd = today.getDate()-1; var mm = today.getMon...
asked by 01.10.2018 / 13:47
2
answers

I'm trying to make a small image slide

var cont = 0; var imgss = []; var refrescar = 1; imgss[0] = "../_imagem/primerr.png"; imgss[1] = "../_imagem/cab.png"; function contar (){ document.images.item(0).src = imgss[cont++]; if(cont == 1){ } setTimeout("c...
asked by 19.09.2018 / 15:05
1
answer

jQuery does not display the cents in a price list

I'm in need of help with the following question: In an HTML price list, I want to create a function using jQuery / JavaScript so that as soon as the page loads, we select the HTML object, turn it into a string, split it after the comma, and t...
asked by 02.10.2018 / 14:45
1
answer

Div set when it arrives at the top

Well, I do not even know how to ask and name what this functionality is, something similar to the Airbnb site when the right side card reaches the top of the page it stays fixed by moving only the contents of the middle of the page. How do...
asked by 12.09.2018 / 13:38
2
answers

What is the difference between this and var within a JavaScript class? [duplicate]

Tell me which one to use, which are used in good programming practice. I write in javascript but I usually use one and the other in the same code ... Eae?     
asked by 21.02.2016 / 01:10