Pastebin
API
tools
faq
paste
Login
Sign up
SHARE
TWEET
Select Dropdown Value Selected Using jQuery
Virajsinh
Aug 27th, 2025
62
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
Exchange Exploit
JavaScript | 1 sec ago | 0.32 KB
Profit Method
Java | 2 sec ago | 0.08 KB
MAKE $900 INSTANTLY
Java | 25 sec ago | 0.09 KB
Free Giftcards Method
Java | 35 sec ago | 0.08 KB
Free Crypto Method (NEVER SEEN BEFORE)
JavaScript | 44 sec ago | 0.32 KB
MAKE $9OO INSTANTLY D A
Java | 51 sec ago | 0.09 KB
Exploit 500$ in 15 Minutes
Java | 1 min ago | 0.09 KB
Instant Profit Method
Java | 1 min ago | 0.09 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!