Click on the table row (student name) to display the corresponding layer (student information), when clicking on the other lines of the original layer of hidden issues
Effect: Click on the table row (student name) to display the corresponding layer (student information), when clicking on the other rows of the original layer hidden, showing its corresponding layer.
Problem: TableThe onclick can be implemented in the display layer, how to make similar onblur lost focus when the operation of the hidden layer.
Code:
Javascript:
JScript Code
function Showchosen (divid) { divid.style.display= ' block '; Div=divid;} function SelectRow (RowID) {var tstu = document.getElementById ("Tblstudent") for (Var i=0;i
< pre="">
Form:
HTML Code
Layer:
HTML Code
"Style=" > "Display:none"
Description: Before using radio button group, onclick Showchosen (), onblur when Hidechosen (), but want to have the effect of the table, and the radio button can not be hidden away;
The original idea is in SelectRow (), when the line is not in the dot with Hidechosen (), but Hidechosen ( ); It is not used, the value of the parentheses inside the problem.
Thank you so much!
------Solution--------------------
Why don't you write jquery?