DEV Community

mhsohag11
mhsohag11

Posted on

1

Answer: Select2 doesn't show selected value

add a trigger change after setting val:

$('#my_id').val('3').trigger('change');

Top comments (0)

AWS GenAI LIVE image

Real challenges. Real solutions. Real talk.

From technical discussions to philosophical debates, AWS and AWS Partners examine the impact and evolution of gen AI.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay