You must Sign In to post a response.
  • Category: .NET

    Jqyery button

    jqyery buttons tutorials. i want if my mouse go over on button then button color change otherwise not.
  • #596406
    You can use the onmouseover, onmouseout javascript events for handling the such scenarios.

    Refer to the following link which explains about change the background color of an achortag using onmouseover.

    Hope this could help you.


  • #596453
    Hi rohit,

    Need not to write jquery codings for this. Use CSS files you can change the color of the button.

    For ex:

    <style type="text/css">
    color: #000;
    background: #ccc;
    width: 163px;
    heigt: 63px;

    color: #fff;
    background: #000;

    <input class="btnOk" type="submit" value="Ok" />
    <input />

    But Internet Explorer 6 doesn't support hover class of CSS.

    if you want in jquery,
    background: #ccc;
    background: #000;

    $("#btnOk").removeClass( "normalButton" );
    $("#btnOk").addClass( "hoverButton" );

    $("#btnOk").removeClass( "hoverButton" );
    $("#btnOk").addClass( "normalButton" );
    Thanks & Regards,
    Karthick NS

This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.