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 answers

i 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

Popular posts from this blog

maven fortify plugin : Unable to load build session with ID XXXXX .. See log file for more details -

c# - Primavera WebServices does not return any data -

android - Display emoji panel with genymotion - keyboard/touch input? -