Click on different buttons to ask different experts
<?PHP for($i= 1;$i<5;$i++){ $uid=$i;//User ID? ><aclass= "A_click" href= "javascript:;" onclick= "Add_to_uid (<?=$uid?>) "> Click on the box </a><?}? ><divclass= "Form1" id= "form" > <form name= "Form1" > User name:<input type= "text" name= "username"/><br/>Email:<input type= "text" name= "email"/><br/> <input type= "text" name= "UID" id= "Iptuid"/> </form> <aclass= "Close" id= "Close" > Close </a></div><style>.form1{Display:none;}</style><script src= ". /js/jquery.min.js "></script><script>functionAdd_to_uid (UID) {//alert (UID);Urid=uid;}</script><script>$ (document). Ready (function(){ $(". A_click"). Click (function(){ $("#form").Show (); $("#iptuid"). attr (' value ',Urid); }); $("#close"). Click (function(){ $("#form").Hide (); });});</script>
Click on the text to pop up a div layer window code "or form form and get the ID value of the click button"