skip to Main Content

Data pass to codeigniter to ajax the function not working – Jquery

I try to pass a data code igniter controller to ajax request the written function not working Controller public function selectPlaygrounds() { $data = $this->branchatm->getCitiesFromState($state); $result=''; if($data){ foreach($data as $list){ $result.="<li ng-click='sawAll($list->city);'>$list->city</li>"; } } sendJsonResponse($result); } Ajax call $.ajax({ 'method':…

VIEW QUESTION

How to shuffle JSON.parse data? – Jquery

Is it possible to shuffle a json parsed result from ajax? $.ajax({ method: 'GET', url: '/-pathSomething-/--ExampleOnly--', data: { sample: sample, sample: sample, sample: sample }, success: function (result) { var ExamDislayQNChoiceML = JSON.parse(result); } }); it is looks like this…

VIEW QUESTION
Back To Top
Search