Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges


creating the dropdown text and value returned from the servlet


Level 6

I have created one servlet which runs whenever we select the dropdown and then it printwrite the key and value that should the dropdown text and value 

function callToServlet(txt){
                        data: {
                        country : txt //let it be India
        	url: '/bin/residential/country-dropdown',
            success: function(txt) {

                console.log(txt);  //This is printing Key=Up, Value="Lucknow",etc


Not I have to make it a drop down from the txt

1 Accepted Solution


Correct answer by
Community Advisor
1 Reply


Correct answer by
Community Advisor