• Kurse
  • Code Compiler
  • Diskutieren
  • Preise
  • Teams
Menu
0

JQuery Selection HELP

Need to select table cells that contain date numbers 1-31 $('td:contains('5')').css("background-color", "yellow"); Above code selects cells 5 15 25 I need to select only cell that contains 5. Here is full code:https://jsfiddle.net/k9ynj3pf/1/

htmlcssjavascriptjquery
1st Apr 2018, 3:03 PM
Endri Shahini
Endri Shahini - avatar
1 Antwort
+ 3
Instead of contains() try using filter(). http://api.jquery.com/filter/ https://stackoverflow.com/questions/11165618/jquery-selector-td-with-specific-text https://stackoverflow.com/questions/15364298/select-element-by-exact-match-of-its-content/18462522
1st Apr 2018, 4:42 PM
ChaoticDawg
ChaoticDawg - avatar

Häufig solche Fragen?

Effizienter lernen, kostenlos:

  • Einführung in Python

    7.1M Lernende

  • Einführung in Java

    4.7M Lernende

  • Einführung in C

    1.5M Lernende

  • Einführung in HTML

    7.5M Lernende

Alle Kurse anzeigen
Heute heiß
Hofstadter a sequence code coach is not running
0 Votes
Vote Code
1 Votes
the code for bigneer is not really what to do after coding begeneer in sololearn
0 Votes
Input errors (python)
1 Votes
Data structure using C
0 Votes
Without degree job
0 Votes
I wanna know is that what about dot net developers in future there is possible they gonna downfall in industry
0 Votes
Je cherche des gens qui parle français pour apprendre le langage c
0 Votes
What’s the actual difference between MB and GB in real-world usage?
1 Votes
Html learn
1 Votes