亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

thinkphp3.2.3+jquery hidden problems
某草草
某草草 2017-05-16 13:10:09
0
3
604

Traversed out

< /p>

Then I wanted to use jquery to hide all the traversed things.
I used this jquery code

< /p>

I don’t know why only one is hidden? Aren't all traversed items hidden?

某草草
某草草

reply all(3)
習(xí)慣沉默

According to the specification, the id is unique in a page. If you generate multiple elements with the same ID in the page, this itself violates the specification. jQuery's id selector instinctively thinks that there can only be one element, so the situation in the problem description occurs!
Please set the class attribute. Elements that need to have the same performance use the same class name, and then operate the class name to control multiple elements at the same time.
HTML
<td class='num'></td><td class='num'></td>

Javascript
$('.num').hide();

phpcn_u1582
$('[id="num1"]').hide()
過去多啦不再A夢

Correct solution on the second floor. id is unique. Just change it to class selector

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template