Closed. This question needs to be more focused。它当前不接受答案。
                            
                        
                    
                
                            
                                
                
                        
                            
                        
                    
                        
                            想改善这个问题吗?更新问题,使其仅通过editing this post专注于一个问题。
                        
                        3年前关闭。
                                                                                            
                
        
显示如下所示网格的最佳方法是什么,该方法将允许用户选择多个框,然后让页面捕获所选元素?

我正在使用的现有代码似乎不足,因为它显示了一个按钮网格,其中只能选择一个按钮:



<tr>
<th>6-8 AM</th>
<td><button type="button" class="btn"></button></td>
<td><button type="button" class="btn"></button></td>
<td><button type="button" class="btn"></button></td>
<td><button type="button" class="btn"></button></td>
<td><button type="button" class="btn"></button></td>
<td><button type="button" class="btn"></button></td>
<td><button type="button" class="btn"></button></td>
</tr>





javascript - 显示可点击的网格-LMLPHP

最佳答案

编写函数以捕获onclick并将其存储在元素数据的to变量中,然后在用户想要同步时将其发送到服务器

关于javascript - 显示可点击的网格,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/34979285/

10-11 22:29
查看更多