I am fetching data from firebase realtime database and displaying it in form of table.I want to make a row in a table as a link to another page but when i am adding tag inside script tag its not working and it is showing an error.
code JS
<script>
var fbRef = firebase.database().ref().child("Sell_Products");
fbRef.on("child_added", snap => {
var name = snap.child("name").val();
var price = snap.child("price").val();
var category = snap.child("category").val();
var description = snap.child("description").val();
var image = snap.child("image").val();
$("#ex-table").append("<tr><td><a href="auction.html">/*here it is showing error "missing ) after argument list"*/<img src=" + image + "/img></a></td><td>" + name + "</td><td>" + price + "</td><td>" + category + "</td><td>" + description + "</td></tr>" );
});
How to solve this error and if this process is wrong then how can i make an image as link to another page. Thanks in advance