Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC:

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

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.

Please Log in or Create an account to join the conversation.

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

Found the answer. It is the 'dataKey' property.

Please Log in or Create an account to join the conversation.

  • Page:
  • 1
Time to create page: 0.054 seconds

  I found "cook" two days ago. Played around with it for a day and then within a day got rid of two legacy applications in IBM Lotus Domino Notes and replaced them with "cook". It was really easy. A piece of cake. Actually it was even easier than cooking. Cooking involves more work than developing with "cook". What can I say about "cook"? Great application great price for what it delivers great forum with a lot of information and fast responses active and friendly community fast forward moving development cycle So what should I say "Monsieur Le Cook"? Keep the good work going it will lead to success. Having become a paying member in the words of Edith Piaf may I say ..... non rien de rien ... je ne regrette rien. Vive La France.
FK (JED)
         

Get Started