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 the hidden questions

Source: Internet
Author: User
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?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.