Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
491 views
in Technique[技术] by (71.8m points)

javascript - Uncaught ReferenceError: function is not defined at HTMLAnchorElement.onclick

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>
question from:https://stackoverflow.com/questions/65877435/uncaught-referenceerror-function-is-not-defined-at-htmlanchorelement-onclick

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...