Skip to main content

Hi,

 

2 quick questions:

 

1) Anyone know if it's possible to have rounded corners on Text box borders or in fact any control with a border?

 

2) Is it possible to have a text box border change colour as you hover over it with your mouse?

 

Thanks,

Hi Sharpoharp1


 


To change the radius of the textbox bored, you can use something like this:


 


 


$("input").css("border-radius", "10px");

To change the border color of the textbox


 


 


 


var $j = jQuery.noConflict();

$j("input").hover(

function () {
$j("input").css({"border-color": "#85c222"});
},

function () {
$j("input").css({"border-color": ""});
}
);

Reference

 


Hope that helps


 


Reply