I have a javascript function checkStatus() which accepts four argumentsbus_company_name,bus_id,bus_time and bus_date . The first three arguments are coming from database, but the fourth one will be entered by user . For that I have written the HTML like :
{foreach name = feach item = k from = $allBuses}
<p>
{$k->bus_company_name}<br />
A/C {$k->bus_is_ac}<br />
Date : <input type="text" name="date" id="dt" />yyyy/mm/dd
<a href="javascript:checkStatus('{$k->bus_company_name}','{$k->bus_id}','{$k->bus_time}',jrny_date)">Status</a>
</p>
{/foreach}
I want jrny_date from input type with id date . How can I implement that?
If you use this, you will pass the element value as param.
But you also can get inside the function checkStatus.