Questions tagged as 'jquery'

3
answers

Change 'id' from Form element javascript or jquery

I need to change the id of a form in HTML with javascript at runtime. I'm trying with JQuery and Javascript, but it's not working. jQuery(this).prev("form").attr("form", "form_modulo"); or document.getElementById('form').id = 'form...
asked by 10.07.2017 / 03:12
2
answers

Problem with '.data ()' and its value inside an if

I'm creating If 's so I do not lose the habit of using them, but when trying something a little different than what I usually do, an error occurs, if does not work. How can I fix it? I tried the following modes: if($('.carousel-i...
asked by 16.02.2017 / 12:11
3
answers

Check external file loading with JS

My home page has a video as a background, but sometimes the video takes a long time to load. In this situation I thought about creating a loading before the page was displayed, my question is how can I check with jquery/javascript...
asked by 10.02.2017 / 14:27
3
answers

Url array - Next button

PHP $urls = Array('www.1.com.br','www.2.com.br', 'www.3.com.br'); HTML <iframe src="www.1.com.br" width='100%' height='100%'></iframe> <button>Proximo</button> How do I always click on the next button to up...
asked by 01.11.2016 / 05:08
2
answers

How to pick up multiple items and play in a single item?

Hello, I wanted to know how I can get these li's all and put only the first <ul> . <ul> <li>1 </li> <li>2 </li> <li>3</li> <li>4 </li> </ul> <ul...
asked by 23.05.2016 / 17:44
1
answer

How to find the second id of something

How can I get access to the second div with the id general as I tried in the script? <div id="general">ds</div> <div id="general">ds</div>' alert($("#general").eq(2).html());     
asked by 09.12.2014 / 19:32
2
answers

What is '$ .extend' and '$ .fn.extend' for?

jQuery has the functions $.extend and $.fn.extend . What are they for? How to use them?
asked by 04.08.2014 / 15:37
2
answers

how to hide and show element by changing css with jquery

Good evening, I'd like to know how I can hide and show my div with class clic as checkbox selected. I have several checkbox and as I select or deselect checkbox I want it to show the element and hide if I desel...
asked by 21.12.2016 / 22:35
2
answers

Close modal Bootstrap after registering

Colleagues I have a system that the user clicking on the link Register Matter will open the following modal: However,IwouldlikeyoutoclickSave,andthemodalclosesautomatically.Itriedusingthecodebelow,themodalcloses,butthebackgroundremains:...
asked by 27.01.2017 / 20:44
1
answer

Doubt how to change the jquery mask type

I'm using the jquery mask plugin in the input value. The formatting I am using is the following '0,000'. I would like to know how to change the formatting to '0.000' when I select KG in 'select'. $('.valor').mask('00.000.000,00', { reve...
asked by 08.12.2016 / 19:27