Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Jquery doesn't work in updatepanel (How to fix this code)

$
0
0

Hello
JQuery doesn't work nside updatapanel after update

this is my code

 

<%--Default5.aspx--%><%@ Page Language="VB" AutoEventWireup="false" CodeFile="Default5.aspx.vb" Inherits="Default5" %><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml"><head runat="server"><style>
        .grid-item-css {
            float: left;
            width: 300px;
            height: 200px;
            background-color: whitesmoke;
             box-shadow:0 0 15px blue;
            border-radius:20px;
            margin: 16px;
        }

         .btn-class {
            width: 60px;
            height: 30px;
            margin: 20px;
        }
    </style></head><body><form id="form1" runat="server"><asp:ScriptManager runat="server" /><asp:UpdatePanel runat="server"><ContentTemplate><div class="grid-item"><asp:Button class="btn-class" runat="server" /></div></ContentTemplate></asp:UpdatePanel><asp:UpdatePanel runat="server"><ContentTemplate><div class="grid-item"><asp:Button class="btn-class" runat="server" /></div></ContentTemplate></asp:UpdatePanel><asp:UpdatePanel runat="server"><ContentTemplate><div class="grid-item"><asp:Button class="btn-class" runat="server" /></div></ContentTemplate></asp:UpdatePanel></form><script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script><script>$(document).ready(function () {$('.grid-item').addClass('grid-item-css')
     });</script></body></html>

Thank you


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>