Skip to main content
deleted 66 characters in body
Source Link

Use @vgoradiya code then on the foreach loop try it this way:

    foreach ($result as $row)
    {
        $label = Html::escape($row->description);
        $matches[] = ['value' => $row->jobno>nid, 'label' => $label];check_plain($row->title)];
    }
    return new JsonResponse($matches);

Use @vgoradiya code then on the foreach loop try it this way:

    foreach ($result as $row)
    {
        $label = Html::escape($row->description);
        $matches[] = ['value' => $row->jobno, 'label' => $label];
    }
    return new JsonResponse($matches);

Use @vgoradiya code then on the foreach loop try it this way:

    foreach ($result as $row)
    {
        $matches[] = ['value' => $row->nid, 'label' => check_plain($row->title)];
    }
Source Link

Use @vgoradiya code then on the foreach loop try it this way:

    foreach ($result as $row)
    {
        $label = Html::escape($row->description);
        $matches[] = ['value' => $row->jobno, 'label' => $label];
    }
    return new JsonResponse($matches);