Display error message next to textbox in javascript
However using something like JQuery, we can do this easily! Checkout these jQuery tutorials/ plugins to help achieve the effect you' re. If you read the CI documentation you could find the answer. Replace your line with this < input type= " text" name= " uname" value= "