<?php
$html  = '<td>'; 
$html .= '<div class="input-group">'; 
$html .= "<span class='input-group-addon'>" . $lang->bug->identify . '</span>';
$html .= html::select('identify', '', '', "class='form-control chosen'");
$html .= '</div>';
$html .= '</td>';
?>
<script>
$('#typeBox').closest('td').after(<?php echo json_encode($html);?>);
$('#product').change(function()
{
    var productID = $(this).val();
    var link = createLink('bug', 'ajaxGetIdentify', 'productID=' + productID);
    $.post(link, function(data)
    {
        $('#identify').replaceWith(data); 
        $('#identify_chosen').remove(); 
        $('#identify').chosen(); 
    })
})
$('#product').change();
</script>
