How to add Css After Click Event with Jquery

Jayakumars
Posted by Jayakumars under ASP.NET AJAX category on | Points: 40 | Views : 959
hi

I have post Jquery How to add Css After Click Event with Jquery

<script type ="text/javascript" language ="javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>

<script type="text/javascript" language="javascript">



$(document).ready(function () {
$("#Bt_Submit1").click(function () {
$(".test").addClass("second");
$("#TxtEmpname").val("Asp.net");
return false;
});

});

</script>


<table>
<tr>
<td>Name</td>
<td>
<asp:TextBox ID="TxtEmpname" runat ="server" CssClass ="test"></asp:TextBox>
</td>
<td>Empno</td>
<td>
<asp:TextBox ID="TxtEmpno" runat ="server" CssClass ="test"></asp:TextBox>
</td>

<td>Amount</td>
<td>
<asp:TextBox ID="TxtAmount" runat ="server" CssClass ="test"></asp:TextBox>
</td>
</tr>
</table>

<asp:Button ID="Bt_Submit1" runat ="server" Text ="Click" />

Comments or Responses

Login to post response