I have the dropdown list like this
<?php echo $form->dropdownList($customers,'customer_name', CHtml::listData(Customers::model()->findAll(), 'id', 'customer_name'),
array(
'ajax'=> array(
'type'=>'GET',
'url'=>
'data'=>
),
'empty'=>--Select One---')); ?>
another link for creating a new customer is like this
<?php echo CHtml::link('Create Customers', "",array(
'style'=>'cursor: pointer; text-decoration: underline;',
'onclick'=>"{addCustomers(); $('#dialogCustomers').dialog('open');}"));?>
I want the create customer link should come inside dropdown list.So how to place create customer link inside the dropdown list,how to merge the both links and create them into a single one?.Any help and suggestions will be highly appreciable.
Tbh i’m not really sure what you’re trying to do, but from what i got you need something like this: