Ememded jQuery code within ASP.NET

Below is a sample code to have ememded jQuery code within ASP.NET page.

 <% if (abc=="4") { %>
           <script>
                    $("#vist<%=x.ToString()%>").css("color","green");
            </script>
  <% } %>

The above code will add custom CSS code to HTML element with id has string like "visit#". 

Comments

Popular posts from this blog

Top JavaScript courses helping you develop SPFx webPart with ReactJS and AngularJS

Resolve error "AADSTS50012: Invalid client secret is provided" in MS Flow's HTTP connector

React Native: buffer is not defined