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

Effective LLM Prompting skills

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

React Native error - Cannot find module 'metro-react-native-babel-preset'