c# - how to make Gridview textbox's border color red while validating using jquery or javascript -


I have a gridview with textbox field in a button click to validate the textbox value. If the text box is 0 or 0.00, then the color box of the text box needs to be changed.

How to do with jQuery or Javascript

Please help me ..

Thank you in advance ..

Deepti ..

HTML

 < Code> input type = 'text' name = 'testtext' & gt;  

JQuery

  $ ("input [name = 'testtext'"]. Change (function () {if ( $ (This) .val () == 0) {$ (ele). CSS ('border', '1px # b87574 solid')}}}  

$ (This). CSS () CSS is used to change elements.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -