Questions tagged as 'jquery'

4
answers

How to hide columns of a datatable in case it shows for mobile with boostrap?

For example I have a datatable of 5 columns, which are all with the definition of col-lg, but when I want to try or see it on a cell phone (col-xs), I would like it to hide the last three columns. How could you do that? Could someone show you...
asked by 07.03.2017 / 15:24
6
answers

Read characters from a text string before a space with Javascript

I need to do the following, and I can not find a suitable way to do it ... This is the code of a function, which puts two tabulations (two spaces with \ t) when finding the first space inside the variable 'customText'. function generatePage...
asked by 28.06.2016 / 10:48
1
answer

Get the color of an area or specific coordinate of a PNG image or JPG when clicking

I need to get the color of an image in an exact coordinate where the user clicks, I need this to be possible with png, jpg or svg format images.     
asked by 17.10.2018 / 17:46
1
answer

Infinite scroll + tooltips

I'm trying to implement a page with infinite scroll and add tooltips to some items. Infinite scroll works fine, but tooltips only appear on the first page, before adding new items with the scroll. This is the example: link The toolti...
asked by 25.10.2018 / 10:35
1
answer

Get the value of an entry Select

I want to get the value of a select without having to choose an option and with this value fill an input, what I mean is that if the select comes with first option texto1 and value is 1 , that when doing the refresh I automa...
asked by 19.04.2018 / 14:07
3
answers

___ ___ erkimt How hidden an entire column in a table with javascript / jquery? ______ qstntxt ___

I want to show / hide a column of a table using javascript / jquery .

Pressing a button shows or hides the entire column. The name of the column is on TH identified by an id I have achieved this by adding a class to each TD but I do not like this solution, I would like to achieve it without adding so much class attribute.

%pre% %pre%
    
______ azszpr135702 ___

Without so much code can be fixed by putting 1 button, instead of 2.

Unless it's strictly necessary, I think it's better if you only have one button, that you make %code% that commutes the visibility of the column.

To do this, we select the header with %code% and hide it or show it with %code% .

To hide / show the rows, we can make a small filter like this:

%pre%

which means: Take the %code% that are your father's third child. The parent is the row %code% and the third child is the %code% in the Country column.

and to them you apply the %code% as well.

With this you save putting the %code% to each element you want to hide.

%pre% %pre%
    
______ azszpr135706 ___

To hide with %code% , without Jquery, it occurs to me that since you already have a class that identifies you, you can use them to add a class %code% , for example.

%pre% %pre% %pre%

If you also take into account the modification of %code% , you could delete the classes of each %code% and only add a %code% to the table as well as remove a button and have only %code% that works as a %code% , but all only with only %code%

%pre% %pre% %pre%
    
______ azszpr135708 ___

You can also do the following from CSS:

%pre%

Or have a class hide in CSS and by means of javascript, add the class:

%pre%     
___

I want to show / hide a column of a table using javascript / jquery . Pressing a button shows or hides the entire column. The name of the column is on TH identified by an id I have achieved this by adding a class to each TD but I do not...
asked by 02.02.2018 / 12:15
2
answers

hide javascript element nobr

I have this <tr> <td nowrap="true" valign="top" width="190px" class="ms-formlabel"><h3 class="ms-standardheader"> <nobr>Estado</nobr> </tr> <tr> ... ... ... </tr> <tr> ......
asked by 22.10.2018 / 12:18
2
answers

Create elements of the DOM with jQuery

I need to create elements in a way that is not very confusing and easy to maintain to make a change. Currently I do it with this code with .append() and .html() : $('.Selector').append( '<div class="dropdown">'+ '&l...
asked by 23.12.2016 / 17:35
3
answers

Javascript - Find similar words in an Array ()

I have the following Array () palabras = ["anatomia","ana","angie","anatómico","anatómica","análisis","analogía","analizar","anabólico"]; Now, in HTML I have: <!-- Qué complicado, oh mi Dios --> <input type="text" name="palabra"...
asked by 06.12.2016 / 16:02
3
answers

make Javascript work when several events happen

Good morning! I have 5 inputs which I want to show in a label the sum of the 5 but dynamically, that is to say as I go digitanto the numbers in the inputs, example if in the iunput 1 I typed the 3 and in the input 2 digité the 4 show me immed...
asked by 05.04.2018 / 16:32