Why the progeny selector doesn't work?

for (var i = 0; I < 2; iPP) {

$("-sharpactivity_time"+i+" a").removeClass("buy_button");

}

<input type="hidden" name="activity_time" id="activity_time0" value="2018/4/25 16:13:59" />
<a href="-sharp" class="buy_button"></a>

< / div >

<input type="hidden" name="activity_time" id="activity_time1" value="2018/4/25 16:13:59" />
<a href="-sharp" class="buy_button"></a>

< / div >

problem: the style has not been removed

Mar.05,2021

because an is not a descendant of input at all. My input is a self-closing label.

< hr >
  CSS [attribute~=value] selector  

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e33fe4-4428b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e33fe4-4428b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?