public function spanElement($name, $display, $value)
    {
        $options = ['onClick' => '$(this).remove();', 'class' => 'multiselector'];

        return $this->toHtmlString(
            '<span'.$this->attributes($options).'>'.
            '<input type="hidden" name="'.$name.'[]" value="'.$value.'">'
            .e($display).
            '</span>');
    }
public function spanElement($name, $display, $value)
    {
        $options = ['onClick' => '$(this).remove();', 'class' => 'multiselector'];

        return $this->toHtmlString(
            '<span'.$this->attributes($options).'>'.
            '<input type="hidden" name="'.$name.'[]" value="'.$value.'">'
            .e($display).
            '</span>');
    }
public function spanElement ( $ name , $ display , $ value ) { $ options = [ 'onClick' => '$(this).remove();' , 'class' => 'multiselector' ] ; return $ this -> toHtmlString ( '<span' . $ this -> attributes ( $ options ) . '>' . '<input type="hidden" name="' . $ name . '[]" value="' . $ value . '">' . e ( $ display ) . '</span>' ) ; }
Generates a single span with pre-selected options with relevant options.

@param string $name
@param string $display
@param string $value

@return \Illuminate\Support\HtmlString
Generates a single span with pre - selected options with relevant options .