TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
krishna vala
NA
290
73.1k
get automatic value
Jan 2 2019 4:14 AM
how to get data-prefix value of drop down selected value in next textbox using javascript.
my code is below:
<div class="form-group">
<div class="prefix-inner">
<div class="form-group">
<select class="form-control countryData countrySelect" required="" disabled="" >
<option data-prefix="91" selected="selected" value="IN">India</option>
<option data-prefix="62" value="ID">Indonesia</option>
</select>
</div>
<div class="form-group row">
<div class="col-xs-4">
<input type="text" class="form-control PhonePrefix text-center prefixCountrySel" placeholder="+000" disabled="" >
</div>
selected value is india is data-prefix code is 91 is automatically display in below textbox using javascript
Reply
Answers (
3
)
how to get countrycode and IP
urgent..How can I get the values from API url in javascript