Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
im wondering how am i going to add in the red border

js
JavaScript
var fullname_msg = 'Please enter your name here!';
$("#fullname").keyup(function(){
    ("#fullname",fullname_msg)
});


html
HTML
<input class="inputText" type="text" id="fullname" name="fullname" value="" placeholder="NAME" />

CSS
CSS
.error {
	border:2px solid #ef716d !important;
}

i tried js
----------------------------------------
JavaScript
var fullname_msg = 'Please enter your name here!';
$("#fullname").keyup(function(){
    ("#fullname",fullname_msg)
    });
$("#fullname").css('border-color', 'red');

------------------------------
JavaScript
var fullname_msg = 'Please enter your name here!';
$("#fullname").keyup(function(){
    ("#fullname",fullname_msg)
    });
$("#fullname").addClass('error');

all these are not working i not sure why?
Posted
v2

1 solution

I am ignoring the keyup Event.

Let me fix the border color issue.
Demo - http://jsfiddle.net/taditdash/D5Kyw/[^]

Check and let me know if you needed this.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900