⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

Join two input field in one row



naufal

naufal
  • profile picture
  • Member

Posted 12 March 2012 - 05:54 AM

Hi everyone, is there a way to make two input field in one row.
I have 2 input fields, start_date and end_date.. i want to save the space line.

Here it is my code

function callback_field_workdate($value) {
return '<input class="datepicker-input" type="text" value="'.$value.'" name="start_date" style="width:162px"> until <input class="datepicker-input" type="text" value="''" name="end_date" style="width:162px">';
}

But it just save the first input field


Thank you for Grocery CRUD

KaBaDaBrA

KaBaDaBrA
  • profile picture
  • Member

Posted 12 March 2012 - 08:31 AM

You will need to use jQuery/Javascript to do that

naufal

naufal
  • profile picture
  • Member

Posted 13 March 2012 - 14:15 PM

Thanks for reply KaBaDaBrA,

I have a good news, this feature will be include in the next version,,
related to this topic /topic/55-id-attributes-in-editphp-and-addphp/page__p__166#entry166