Questions tagged as 'javascript'

2
answers

Why is not the selected select option being cleaned using Choosen?

I was trying to clear the selected option from the - <select> check box using JavaScript. In this checkbox I'm using the Choosen plugin. I saw an answer in the Stack Overflow , and I already made the following code: $("#btnL...
asked by 28.09.2017 / 21:40
2
answers

Knowing when you hear changes in DIV with Javascript

Hello, good morning. I need to compare a change in the DIV1 daughters so I can make a notification. This way I did may not be the best, I'm still learning. <div class="div1"> <div class="filha"> <...
asked by 16.04.2018 / 14:49
4
answers

Toggle header colors, based on menu hover

I have a traditional header, with a logo and links menu, I would like to switch the header colors based on the hover of each link in the menu. h1 { padding: 0; margin: 0; color: #fff } header { padding: 0; marg...
asked by 19.05.2018 / 15:25
1
answer

Include copyrighted text when copying from site

Would the person copy a text from my site and, no matter where it sticks, display the text it copied and a copyright message? I found a lot of content about blocking the copy of the content, this is not what I need, I do not have any code rel...
asked by 03.04.2018 / 02:30
2
answers

How to remove an entire div in Jquery and then add it back?

How can I remove an entire div using .empty() or .remove() and then add it back to any function?     
asked by 03.04.2018 / 04:54
2
answers

How to activate 24-hour Datapicker Bootstrap?

<scripttype="text/javascript"> $(function () { $('#datetimepicker1').datetimepicker({ format: 'YYYY-MM-DD hh:mm:ss', locale: 'fr, use24hours: true }); }); </script&g...
asked by 17.11.2016 / 16:46
1
answer

do the multiplication of values using soma and while operator

var n1 = Number(window.prompt(" digite o primeiro número ")); var n2 = Number(window.prompt(" digite o segundo número ")); var soma; var num = 0; while( num < n1) { var num = n1+n2+n1; num++;...
asked by 18.11.2016 / 00:05
1
answer

How to get input values and concatenate Javascript

I'm doing this, but it's not working var nomeRua = document.getElementById('nomeRua').value(); var nomeBairro = document.getElementById('nomeBairro').value(); var uf = document.getElementById('uf').value(); var nomeCidade = document.getElement...
asked by 20.01.2016 / 22:15
1
answer

Ident and color VB.Net code

Is there any JS or CSS that is able to indent and color VB.net code within a div or input ?     
asked by 10.02.2016 / 15:25
1
answer

Change content by clicking icon and change icon

I have the following situation: two divs that are displayed by clicking icons. Each screen has an icon and a specific content, it would be a toggle, but the content and the icon. I left attached an image of what it would be and here is an idea o...
asked by 30.05.2016 / 01:27