Working on php and javascript in a codeigniter based application
In my view file, I am using an anchor tag as a button, and when I click on this button, it should call the function which then activates a modal, but I am getting the error
function addWorkImages(jobid) { console.log("addWorkImages ", jobid); //$('#add_image_job_id').val(jobid); //$('#addImages').modal('toggle'); }
<a type="button" onClick="addWorkImages('abc')" class="btn-info">Add Images</a>
2.1m questions
2.1m answers
60 comments
57.0k users