在选择选项上动态显示工具提示

时间:2018-11-13 08:01:59

标签: javascript html

我想使用JavaScript动态显示以下格式的工具提示:

Emp Details First Name :FirstName-1 Last Name :lastName1 Emp Id :empID 11

<select name="opts" id="empdetil" multiple>
  <option title="" value="FirstName-1 lastName1 empID 11">EmpID-11</option>
  <option title="" value="FirstName-2 lastName2 empID 12">EmpID-12</option>
  <option title="" value="FirstName-3 lastName3 empID 13">EmpID-13</option>
  <option title="" value="FirstName-4 lastName4 empID 14">EmpID-14</option>
  <option title="" value="FirstName-5 lastName5 empID 15">EmpID-15</option>
  <option title="" value="FirstName-6 lastName6 empID 16">EmpID-16</option>
</select>

0 个答案:

没有答案