Example of js controlling changes to the connection content of the href content

  • 2020-03-30 02:47:02
  • OfStack

html :
 
<a data-toggle="modal" href="#myModal_devices" id="check_devices" class="guide_s step1 ok" onclick="GetLanHosts();return false;"><span>►</span> existing <em>0</em> Station equipment connection </a> 

js :
 
if(client_num!=undefined) 
{ 
document.getElementById('check_devices').innerHTML="<span>►</span> existing <em>"+client_num+"</em> Station equipment connection "; 
document.getElementById('client_num').innerHTML=' So far '+client_num+' Station equipment connection '; 
} 

Related articles: