Github Link: https://github.com/adi501/JQuery-Examples
29 December 2021
How to check a class exists on page or on html element
How to Get Selected Radio Button Value in jQuery
Github Link: https://github.com/adi501/JQuery-Examples
28 December 2021
How to view an HTML file in the browser with Visual Studio Code
Step1: Open Visual studio code tool
Step2: Click on Open folder and select HTML files folder
Step3: Then open HTML file "TestFile.html" from folder
Step4: Then go to Extensions in VS Code and install "Open in Browser" extension ass below image.
5 December 2021
DropDownList change event using jQuery class selector in ASP.net
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="DropDownList_change_event_using_jQuery_class_selector_in_ASP_net.aspx.cs" Inherits="WebApplication1.DropDownList_change_event_using_jQuery_class_selector_in_ASP_net" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title></title>
<script src="Jquery/jquery-3.6.0.js"></script>
</head>
<body>
<form id="form1" runat="server">
<div>
<div>
<asp:DropDownList ID="DropDownList1" CssClass="DropDownListcss" runat="server">
<asp:ListItem Text="Select" Value="0"></asp:ListItem>
<asp:ListItem Text="asp.net" Value="1"></asp:ListItem>
<asp:ListItem Text="c#" Value="2"></asp:ListItem>
<asp:ListItem Text="ado.net" Value="3"></asp:ListItem>
<asp:ListItem Text="SQL Server" Value="4"></asp:ListItem>
</asp:DropDownList>
<script type="text/javascript">
$('.DropDownListcss').change(function () {
alert("DropDownList change() event.");
alert($(".DropDownListcss option:selected").text());
alert($(".DropDownListcss option:selected").val());
});
</script>
</div>
</div>
</form>
</body>
</html>
1 April 2020
Rendering raw html data in react js
- Create Components folder under src folder
- Add RenderingRawHtml.js file and add below Code
- Open App.js file and update code as below\






