Questions tagged as 'table'

1
answer

How to put Scroll to table inside div with width 100%?

The example shows a div with horizontal scroll, but I would like the table along with the div that has scroll to adjust 100% to the size of the screen. .div { border: solid; display: inline-block; width: 300px; overflow: auto;...
asked by 30.07.2016 / 22:40
1
answer

Totalize column values of an HTML table, with decimal result

I need to display the total result by adding the values that contain the value column: var linha=document.getElementsByClassName("calcular"); var resultado=document.getElementById('total').innerHTML = 0;...
asked by 02.06.2018 / 19:27
1
answer

Column join: HTML5 and Angular

Well, I'm wondering how I can do this join with angularjs? I saw that it has ng-repeat-start and end, but I could not implement it.     
asked by 22.02.2017 / 04:50
4
answers

Contents of a JSON in a table cell

How do I get the result of a json and play straight into a table from my td? Is the form of getJSON right? <script type = "text/javascript" language = "javascript"> $(document).ready(function(){ $.getJSON('../js/gcs.json', f...
asked by 30.08.2016 / 22:41
1
answer

Changing the color of the td without updating the page with ajax

How to solve this problem, I saw that there are solutions in ajax but I could not develop, what I need is to change the color of the td of a table without having to refresh the page , the color change of the td should happ...
asked by 05.06.2014 / 02:59
1
answer

Decrease tables to fit on a page

I have a page that has four tables and a button for the user to print. The problem is that these tables have a lot of columns and when I try to print, they are cut. I would like to be able to downsize the tables so they fit on the print pa...
asked by 09.07.2018 / 14:44
1
answer

Show the number of rows and columns Javascript

I want the user to enter the row and column quantity of a table and display its values in the table. But when typing the number of rows and columns in the prompt does not display the table and values. <!DOCTYPE html> <html> <hea...
asked by 06.10.2017 / 07:06
1
answer

Subsetting the row of the PivotTable

In the pick line function I get the line clicked and send the data to the form and store OBJ of the line and get index tbm var index = $(obj).closest('tr').find('td').eq('0').text(); Here after I changed the data I create the tr and step th...
asked by 31.10.2017 / 14:02
1
answer

How to force the maximum width of the table?

How can I set the width to be occupied by the table? forcing it to do a line break and continue when it reaches that maximum width?     
asked by 27.09.2015 / 01:40
1
answer

Variable table

I do not know if it is possible, but I would like to create a table that according to my data it would create the number of rows and columns, and then I would be able to type values in those cells. Creating a spreadsheet would also be possible....
asked by 08.07.2015 / 21:14