javascript - Append variable value to form Input -
javascript - Append variable value to form Input -
this question has reply here:
how utilize javascript variables in jquery selectors 5 answersi need append numeric value stored in 1 variable form input fields.
let's say
var b= 5; var text=$("#dropdown_id").val();
i want append value of variable b in dropdown_id .
my expected result #dropdown_id5
use string concatenation:
$("#dropdown_id" + b).val()
javascript jquery html
Comments
Post a Comment