set_placeholder()

Initial value selected if no other selection is made.

Signature:

public function set_placeholder(string $placeholder = ' ', bool $allowClear = true)

Parameters:

  • $placeholder: Placeholder text, e.g. “Please make a selection:”
  • $allowClear: Whether to display a clear button “x” to clear the select box back to the placeholder value once a selection is made.

No related content found.

Tags:

PHP Autocomplete
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.