I turned the input text-value into the inp1 var but once I want to call it inside the obj it doesn't work.
<input type="text" placeholder="Enter your text here" class="input fade-in" id="inp1" required>
var inp1 = document.getElementById("inp1").value;
$(function(){
$('#qrcode').qrcode({
width: 150,
height: 150,
text: "https://www.stackoverflow.com/" + inp1
});
});
I expect the qrcode code to show the url + the text of the input