I have a JavaScript above this html is there any way to pass it inside EditBanner(JS Variable Here) in code below ?
//EditBanner to be changed to pass a Js v
Yes, JavaScript variables will exist in the scope they are created.
var bannerID = 55; function EditBanner(id) { //Do something with id }
If you use event handlers and jQuery it is simple also
$("#EditBanner").click(function() { EditBanner(bannerID); });