I made little jquery script for checking if input box value bigger than 5 .but I have 2 tag with an id and only one of them works.

```
<div id="register">
    <form id="register">
<input id="first" type="text" /> <a id="first" ></a> <br />
    <input id="second" type="text" /> <a id="second" ></a>

</form>

```

```
$('input').keyup(function(){
if($(this).val().length<5)
   {
  $('a.first').text("Please fill"); 
   }
if($(this).val().length<5){
     $('a.second').text("Please fill"); 
   }
});

```

But it shows only first `<a id="first"></a>` tag. Second tag not visible