How to get DIV_html/css_WEB-ITnose under A tag

WBOY
Release: 2016-06-24 12:22:01
Original
913 people have browsed it

JavaScript function class

function showhide(obj){
alert(obj)
$(obj).next('div').toggle();
}

This is a big category
This here returns alert (obj) // get It's javascript:, I don't know how to write it, please help.

Reply to the discussion (solution)

The code is fine,
I don’t know if you want to say why only one div is shown and hidden.
Next itself can only select one div. If you want to get all the divs after the a tag, use the nextAll method. The JQ I use is version 1.7.2

The code is fine!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template