Welcome, Guest
Username: Password: Remember me

TOPIC: Using JDom, give element id, name

Using JDom, give element id, name 15 Jul 2013 14:24 #10467

  • jhallock
  • jhallock's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
I am attempting to use JDom inside my component to make some custom forms for running reports.

How do I set the html element name and id? I want the following code to create a select with the name "facility". I have tried using the "name" property and the "alias" property. Neither of those work. Also, how would I apply a css class to the element as well?
	<?php echo JDom::_('html.form.input.select', array(
		      'list' => $this->facilities,
		      'labelKey' => 'label',
		      'nullLabel' => ' - Facility -'
		));
	?>

Thanks.
The administrator has disabled public write access.

Using JDom, give element id, name 15 Jul 2013 14:31 #10468

  • jhallock
  • jhallock's Avatar
  • Offline
  • Senior Member
  • Posts: 43
  • Thank you received: 1
  • Karma: 0
Found the answer. It is the 'dataKey' property.
The administrator has disabled public write access.
Time to create page: 0.058 seconds

Get Started