Mohd Abrar Ahmed Mohd Abrar Ahmed - 4 months ago 77x
jQuery Question

By default in web forms it will have two aspNetHidden Divs, How do I remove that

When i create a empty webform page in it create the code like below:

<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Threetier.WebForm1" %>
<!DOCTYPE html>
<html xmlns="">
<head runat="server">
<form id="form1" runat="server">


additionally i added googleapis jquery in head tag using:

<script src=""></script>

Now, this means that it has only one div in form and when I console the below code I should get object of one div:


but the result is

Object[div.aspNetHidden, div.aspNetHidden, div ]


Try following code