A
A
Alexander Zaitsev2015-06-15 10:11:08
JavaScript
Alexander Zaitsev, 2015-06-15 10:11:08

How to simulate click on vk.com dropdown list using javascript?

There are drop-down lists in the VKontakte settings:

qQR49Vl.png

The list of options is initially empty, it is loaded when you click on the drop-down list, i.e. the options menu opens with the options you just loaded. The list itself is not the usual select, but a group of html elements. With $("...").click() on the outer element, nothing is loaded, and the context menu does not drop out. How can I load a list of options?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
Max Payne, 2015-06-15
@YardalGedal

Are you sure you need it? Maybe this piece of html code will lead you to something?

<input type="hidden" name="pedit_status" id="pedit_status" value="X" class="resultField">

S
Serdji, 2015-06-15
@ssumatokhin

You can load using ajax, but there is a ready-made solution, but you need to connect Query UI and use the autocomplete () method; . And a couple more useful links, a video lesson from the developers themselves here .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question