I have a query to be executed on a btn click. The problem is that I can't even open the page because the model is null which I know it is innitialy but becomes not null based on a parameter passed later. What I tried is
$(function(){
$("#btnVer").on("click", function(){
if("@(Model.IntrebareClass != null)")
{
//checkA
if($("#rasA").hasClass("colorA") && checkA == "@Model.IntrebareClass.CorectA")
{
$("#rasA").css("background-color", "green")
}
this is a part of the jquery. How do I fix this?

Marius VasilePosted Nov 28, 2021, 10:04 AM
Sachin SinghPosted Nov 28, 2021, 7:13 AM
Marius VasilePosted Nov 28, 2021, 6:35 AM
Marius VasilePosted Nov 28, 2021, 6:29 AM
Satya KarkiPosted Nov 28, 2021, 6:15 AM
Sachin SinghPosted Nov 28, 2021, 4:24 AM
Srinivasan RamamoorthiPosted Nov 28, 2021, 4:16 AM