Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Select Dropdown Value Selected Using jQuery
Virajsinh
Aug 27th, 2025
1,936
0
Never
Add comment
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!
jQuery
0.18 KB
| Source Code
|
0
0
raw
download
clone
embed
print
report
<
script type
=
"text/javascript"
>
let selectedId
=
$
(
'#state_id'
)
.
data
(
'selected-id'
)
;
if
(
selectedId
>
0
)
{
$
(
'#state_id'
)
.
val
(
selectedId
)
.
trigger
(
'change'
)
;
}
<
script
>
Tags:
html
jQuery
dropdown
select
Advertisement
Add Comment
Please,
Sign In
to add comment
Public Pastes
⭐✅ Trading Profit Method ⭐
JavaScript | 2 sec ago | 0.25 KB
⭐⭐⭐Profit Method⭐⭐⭐
Java | 6 sec ago | 0.15 KB
Free Crypto Method (NEVER SEEN BEFORE)⭐ F
JavaScript | 8 sec ago | 0.27 KB
✅⭐ Make $2500 in 15 minutes ⭐✅
JavaScript | 10 sec ago | 0.25 KB
⭐Swapzone Glitch ✅ Working⭐ 6
JavaScript | 16 sec ago | 0.27 KB
⭐⭐⭐Free Giftcards Method⭐⭐⭐
Java | 17 sec ago | 0.15 KB
⭐ Free Crypto Method ✅ NEVER SEEN BEFORE ⭐
JavaScript | 19 sec ago | 0.25 KB
✅ Make $2500 in 20 minutes⭐⭐ G
JavaScript | 24 sec ago | 0.27 KB
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the
Cookies Policy
.
OK, I Understand
Not a member of Pastebin yet?
Sign Up
, it unlocks many cool features!