I'm using Ajax to Post to the controller in Mvc but my var resets to null in the foreach
|Added at||2016-12-25 11:12|
So Im using this code to fill my container with Posts from the database.
The problem is during the foreach im adding a ID to the onclick for the Like Function. But when I try and use it it has turned into a null. Even though the call stack on chrome claims its not null. Does anyone have a clue on how to solve this?