i need add fields dynamically in my view form. i have a script function for that.. but i don't know how to include in that script into codeIgniter.
my controller -
class uploadfile extends CI_Controller {
function __construct()
{
parent::__construct();
$this->load->helper('url');}
//index function
function index()
{
//load file upload form
$this->load->view('upload_file_view');}}
my view -
<script type="text/javascript" src="<?php echo base_url("assets/js/myscript.js");?>" ></script>
</head>
<body>
<label for="doc" class=" control-label">SUPPORT DOCUMENT</label>
<div class="multi-field-wrapper ">
<div class="multi-fields">
<div class="multi-field">
<input id="doc" type="text" class="form-control" name="attachment[]">
</div> </div>
<button type="button" class="add-field">Add field</button> </div>
and my script path - C:\xampp\htdocs\samplecod\assets\js