Questions tagged as 'jquery'

1
answer

Request ajax with unexpected return

I have an ajax code that makes a request in a php file, and in this php file has only one    echo json_encode ('test') In return, the string "teste"NULL , always with this NULL is returned, after any return. $.ajax({ url:...
asked by 12.05.2018 / 15:59
2
answers

Remove click with JQuery after clicking another element

Whenever I click the label that is inside flags it should apply a background-color . It's working. What happens, is that when I click on a div, it applies the background correctly, but when I click on another, I want it to remove the backgr...
asked by 29.05.2018 / 05:13
3
answers

Jquery .text printing only once

$.getScript("func2.js", function() { $(".teste1").text("1"); $(".teste2").text("2"); }); <div class="teste1" style="color: red"><div> <div class="teste2"><div> Why did he only enter once?     
asked by 17.05.2018 / 19:33
2
answers

JQuery DataTables - Number of Paging Numbers

I'm implementing DataTables pagination and I could not figure out how to change the number of paging number buttons. As you can see, we have 1 a 5 , or we could have 7 a 11 numbers of the Page, that is, always 5 numbers . I would...
asked by 10.06.2014 / 19:20
2
answers

on () and bind () are not working

I am using off() in an element to disable its functionality and need to enable it again with on() . But it is not working when on() is executed ... Here's the code, I'm trying to prevent a form from being sent 2 times when...
asked by 24.05.2014 / 20:03
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

Using a button or dropdown to separate the query by alphabet?

I'm using DataTable to better organize some spreadsheets of my system, but the client suggested to me that the paging buttons could be replaced with letters of the alphabet, instead of having botão 1 corresponding to pagina 1...
asked by 23.04.2018 / 21:48
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

Cancel the submission of the jQuery form

Good afternoon, I have a form and I want it when the submit button is clicked it does not reload the page for sending the post I placed return false; in function submit of jQuery but did not roll .. . $("#form-anunc...
asked by 16.11.2017 / 17:14
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