Questions tagged as 'jquery'

1
answer

"page load" append event

In this code snippet, div1 is placed in div2 when you click on it, but I wanted it to be done automatically when loading the page without having to click on it. I've tried replacing the .click event with .load or .ready but it d...
asked by 27.05.2014 / 22:53
1
answer

jQuery Mobile: page events

I can not fully understand the jQuery Mobile page events hierarchy. How do I assemble the entire contents of an HTML page (and its modifications) and only present it to the user end when the page is ready? For example: I use a JS funct...
asked by 10.05.2014 / 04:42
1
answer

Problem in simple accordion effect in paragraphs

Is this feasible? Or do they have any suggestions without jQuery UI plugins? HTML CODE: <div class="minhaclasse"> <p class="titulo">Título<br>resumo<br></p> <p class="outros"> texto de descrição </p>...
asked by 28.03.2014 / 20:51
1
answer

How to return a column's actual value in jQuery datatables

I'm feeding my table through ajax and customizing the return. In the status (0 or 1) column I used "fnRender" to return an active or inactive label according to the value, but I need to use this same validation to show the Dis...
asked by 10.04.2014 / 20:01
2
answers

Data-Tables misaligning table title and body when scrolling

I'm trying to apply the DataTables plugin to my template tables, the problem is that when I apply scroll , the table ends up misaligning the table title of its respective body of data. p> JsFiddle     
asked by 08.04.2014 / 14:55
1
answer

Problem in SVG image. Event mouseenter (), mousemove (), and mouseleave ()

I have an SVG image with the States of the Country, and when I hover over a State, the image with the name of the State appears and follow the mouse. I have already made the image appear and disappear with the events mouseenter and...
asked by 14.04.2014 / 21:38
2
answers

Datatables - Rowspan in tbody: Can not read property 'className' of undefined

I'm using JQuery and the DataTable plugin in my tables. So in some situations I need to use rowspan in the body ( tbody ) of my tables, which generates the following error in Google Chrome and ends up not applying the plugin: Uncaught...
asked by 14.04.2014 / 20:20
2
answers

Change a textbox inside a textbox / jQuery group

I have a function that when clicking on a button, it would add fields, each time it adds, it adds 3 fields, quantity, total value and subtotal value. My question is how would I change the total amount by changing quantity or value? These fields...
asked by 10.06.2014 / 19:10
1
answer

How to make a function return result just after click?

When using the confirm() function in JavaScript, it usually looks like this: var resultado = confirm("Deseja realmente confirmar?"); if(resultado){ //confirmou... } I would like to know if there is any way to do the same thing wi...
asked by 10.06.2014 / 23:58
1
answer

Print return text json in middle of code - JQuery / JavaScript / JSON

I have a chart that is created according to the year, which is passed by AJAX and returns a JSON containing the values to create the chart. Well, I send AJAX with the year, I return the JSON, however ... It makes a mistake, it creates everything...
asked by 20.06.2014 / 00:11