Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 537 Bytes

File metadata and controls

13 lines (10 loc) · 537 Bytes

Element name & id naming convention

  • Joomla follows writing names & ids in this format

e.g. name="filter[search]" id="filter_search"

  • Name is written using camelCase format if it has more than two word eg. adminForm
  • If it is array of fields, name is written as eg. filters[search]
  • Id is written using underscore, if it has more than two word eg. filter_search

e.g.

<input type="text" name="filter[search]" id="filter_search" value="" placeholder="Search" data-original-title="" title="" autocomplete="off">