1 if(message != "指派")
2  {
3     document.getElementById("appoint").style.display="none";
4 
5  }else{
6     document.getElementById("appoint").style.display="inline";
7  }

上面是,javascript代码,下面是html代码:

 1 <!-- 选择指派人-->
 2 <div id="appoint">
 3 
 4 <label>指派给:</label>
 5 <select name="assignedTo" id="assignedTo">
 6   <option value="未选择" selected >选择指派人</option>
 7          @foreach($userList as $user)
 8                   <option value="{{$user->name}}">{{$user->name}}</option>
 9          @endforeach
10 </select>
11 </div>

转载:http://www.cnblogs.com/unpolishedgem/p/3247098.html

 

相关文章:

  • 2021-10-04
  • 2022-12-23
  • 2022-02-14
  • 2022-12-23
  • 2021-12-27
  • 2021-06-18
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2021-09-23
  • 2022-01-22
  • 2021-07-28
  • 2021-06-14
  • 2021-10-14
  • 2022-01-30
相关资源
相似解决方案