使用Select2(https://select2.github.io/examples.html)进行多值选择框时,您可以从下拉列表中切换选定的值.有什么方法可以防止这种行为吗?因此,您只能通过单击旁边的X来删除所选项目.
所有帮助非常感谢.
我有一个带有 jQuery 函数的表,用于将鼠标悬停在行/列上,您可以在这里看到它: http: //jsfiddle.net/v0r9kjq7/这是代码:
HTML:
<table>
<thead>
<tr>
<th>Title 1</th>
<th>Title 2</th>
<th>Title 1</th>
<th>Title 2</th>
</tr>
</thead>
<tbody>
<tr>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
</tr>
<tr>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
</tr>
<tr>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
</tr>
<tr>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
</tr>
<tr>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
</tr>
<tr>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td>
<td>Content here</td> …Run Code Online (Sandbox Code Playgroud)