Questions tagged as 'jquery'

3
answers

How to put a submenu in a menu I already have?

I'm editing the blog, and I wanted to make a menu with submenus, but I do not know exactly what makes it happen. I tried searching google but I did not get anything. Only css tutorials appear, but nothing specific that can tell me what css code...
asked by 02.02.2016 / 10:48
2
answers

Enable function on another page after clicking on anchor

Basic example, when you click on div1 of Pagina1 open Pagina2 and change the background color, is it possible? Page1.html <body> <div> <a href="Pagina2.html#div1" class="">div1</a> <a href=...
asked by 28.01.2016 / 00:48
1
answer

Transform mysql query into list

I'm doing a query on a database that returns a list of users, which I'm printing to a table. I would like to turn this query into a list and then insert those users into another table I make the query as follows: $sql= mysqli_query($con...
asked by 29.01.2016 / 13:26
1
answer

Index and automatic values

I have the following Json: {"result":[ [ {"ID_CTE":"1","ABREV":"301CAGSP","MODELO":"CT","NUMLANCTO":" 71","NUMCONHEC":" 5911","NUMFATURA":"0000173","NUMREMET":"23.643.315\/0094-51","NUMDESTIN":"23.643.315\/0110-06","NUMRED...
asked by 28.07.2015 / 20:43
1
answer

Hide part of a text with javascript

I have a table that is populated with data coming from a bank. One of the columns contains text that is sometimes long (more than 1000 characters). I want to limit the display of this text in the table to 300 characters and add a "read more" but...
asked by 15.06.2016 / 16:55
2
answers

How to change the value of the checkbox with jquery

How do I change the value of checkbox when it is selected? Code done so far it shows me object. $("#checkbox").change(function(){ var atual = $("#checkbox").val(); $("p").text(atual); // vamus supor que aqui o valor seja 23...
asked by 10.06.2016 / 13:53
1
answer

video tag controlling by javascript

How do I, when I click on the video, it starts loading, because I can not if someone can help thanks. Here is the video snippet: <div class="video"> <video class="video" loop controls tabindex="0"> <source src="video...
asked by 24.08.2015 / 20:57
2
answers

How to keep page updated without refresh?

I'm trying to create a page that stays up-to-date without having to refresh. I created a Javascript function that looks for select and while of another page, but this is generating high CPU consumption and the server faces have...
asked by 10.09.2015 / 05:17
1
answer

Use / Escape @ in CSHTML view

I'm having a jQuery code on the CSHTML page and I'm having trouble validating the email with a regular expression since @ is a Razor command in .NET. How do I resolve this problem? Follow the script: $("#formEsqueceuSenha").submit(fu...
asked by 11.09.2015 / 14:55
2
answers

Array jQuery - Remove indices and concatenate html

I'm making an ajax call that retweets the Html of filters to be put on a particular div. However I would like to remove some html elements previously. For that I passed the html to jQuery, thus turning it into an array. After removing the elemen...
asked by 14.09.2015 / 22:47