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
Post a Comment