foreach ($records as $item) { echo "<div id=\"content_main_entry\">(here i want to make a link with the $item->mine inside as a link parameter) <span class=\"content_main_entry_value\">Value</span></div> <div id=\"content_main_entry_enroll\">(here i want to make link with id "iwanttoclickthis")Zapis</div>"; }
probowalem stworzyc skrypt w tym samym pliku widoku ktory by po nacisnieciu id iwanttoclickthis wywolywal alert o informacji $item->mine, jednak nie moge tak zrobic poniewaz w funkcja ajaxa nie zna zmiennej $item->mine... jak mozna to zrobic zeby dzialalo poprawnie ?
pozdrawiam