Display a specific row table based on row content

37
March 14, 2019, at 00:00 AM

so i need to display some specific rows of my table based on the row content with JS

this is the example :

I need to display the tr where the td has an element i class fa fa-heart Is it possible ?

Answer 1

To display the className of the i element in the td :

$('#myTable tr:eq(1) td:eq(1)')[0].children[0].className

For checking if it is the right value you need to loop through all the table elements

READ ALSO
Offline Text to speech to file with word timing on node

Offline Text to speech to file with word timing on node

I'm trying to build a TTS service that dose the following:

20
Google Vr service Aframe

Google Vr service Aframe

I'm using Aframe in AR web App, it works great but on the Android device with Chrome, I always have the 'Google Vr Installation Service Warning' that pops upI really don't need that

40
How to edit a JS filled input?

How to edit a JS filled input?

I'm working on a game for a website, I have a picture and the user by clicking can choose where the ball is gonna goHe has 10 tries, by clicking, the user fills the 20 inputs (x and y for each tries) with unique ID like "x1", "y1", "x2" etc

41
Print as you type in python

Print as you type in python

I am having a little problemHow do you type a number and it gets printed out as you type

23