Questions tagged as 'javascript'

2
answers

Upload JS on mouse hover

What is the technique used by this widget on the blogger (?): link When you place the cursor over the name of the author of the post, it loads a js with a popup. The idea is to use this to minimize the loading time of the site with some...
asked by 08.06.2014 / 19:58
2
answers

Calling a jquery function in tab change

I have a jquery function that mounts an html. It turns out that there is a View with 4 tabs. I would like when selecting a certain tab, the function would be called and of course, loading the dynamic html to mount the page. What event do I do? I...
asked by 13.06.2014 / 16:40
1
answer

Disable checkbox unchecked javascript

I need to disable all checkboxes that are not selected / checked. I tried with the following code: $('input[type=checkbox]').change(function(){ if($(this).prop("checked", false)){ $('input[type="checkbox"]:checked', false).prop("disab...
asked by 07.11.2017 / 15:02
3
answers

Code to show screen resolution

I'm testing the site I'm creating on multiple devices to see the responsiveness, as I have 5 css one for each screen resolution and would like to create a code inside a div that would display the device's resolution.
asked by 13.11.2017 / 16:57
1
answer

Modeling Edge of an element (DIV)

I want to know how to manipulate the border of a div. The idea is to have a well-defined border in the upper right corner of that element. That is, if the div has a square format of 4 px on each side. top right has a 2px-sized border and well pr...
asked by 06.11.2017 / 02:46
2
answers

Disabled HTML and Jquery property

Does anyone know why it is not disabled in jquery. That is, when I click the button. I want to click on the button (disabled = false)                        $(document).ready(function(){ $("#b2").click(function(){ $("in...
asked by 05.11.2017 / 18:28
1
answer

JavaScript Calendar

I'm creating a JavaScript calendar. I want to show every month of the year. My problem is that the first month works fine, but the rest are not on the correct days. Step by parameter the number of each month that is in the array. function...
asked by 23.10.2014 / 19:54
2
answers

CSS condition with jQuery, eg if div1 is visible then div2 will also be

Speak guys do not handle much Js / jQuery, but I need the following that a <div> hides when another <div> is hidden as well. Ex: When the buy button is hidden a <div> with the discounts hide also and dis...
asked by 23.10.2014 / 15:44
1
answer

How to block tr after clicking once

I have several table row and when I click on a <tr> it runs this script: $(function(){ $('tr').click(function(){ $("tr").prop("disabled", true); var id = $(this).attr('id'); $.post...
asked by 05.01.2018 / 17:22
2
answers

'Delay' in the assignment / existence of properties in the instance vue

I have the following code: Vue.component('child-comp', { template: '<p>Child here</p>', props: ['item'], methods: { alt: function(msg) { alert(msg); } } }); new Vue({ el: '#app', data() {...
asked by 24.10.2017 / 15:41