title: are there any alternatives for GetElementById?
body: <p>Okay, I am new to JavaScript, so I really need help with this. I have a script, which looks like this:</p>
  
  <pre><code>  var p = new Ping();
  
    p.ping("http://bf3.in", function(data) {
      document.getElementById("ping").innerHTML = data;
    });
  
   ............. some code goes here ........
  
  &lt;td id = 'ping'&gt;line 1&lt;/td&gt;
  &lt;td id = 'ping'&gt;line 2&lt;/td&gt;
  </code></pre>
  
  <p>My problem is that there are multiple tags that want to use this function on, but I can only use id="ping" on one tag, so I need an alternative for getElementById, one that would allow me to use multiple tags.</p>
  
  <p>----------------UPDATE-----------------------</p>
  
  <p>this is my full code <a href="http://bf3.in/ping.txt" rel="nofollow noreferrer">http://bf3.in/ping.txt</a>
  actually iam hosting some game servers so need to ping serevr ip.
  here is where client login <a href="http://bf3.in/launcher/login.php" rel="nofollow noreferrer">http://bf3.in/launcher/login.php</a>
  user name : juno
  password : juno
  thanks :)</p>