Tagged: request
- This topic has 1 reply, 2 voices, and was last updated 4 years, 5 months ago by
Sebastian.
Author | Posts |
---|---|
uptwo
November 20, 2020 at 2:34 pm
|
Heads up! this post was created when Microthemer was at version 6. The current version is 7. Some references to the interface may be out of date. Hey, i have a question / a request. If i want to target an option value as example via the targeting mode i can’t target the option its self. It selects the option, but won’t target it. To bypass that, i need to target the parent and search for the option value manually. As an example: Relevant Code:
Is there a way to target option values? Or rather is it possible? With best regards, |
Sebastian
November 20, 2020 at 4:29 pm
|
Hey Max, When an element isn’t directly clickable for whatever reason, it is possible to target elements without clicking them. Expand the advanced targeting controls, click near the element, and then click on the line of HTML for the element. See this video example. So the line you are looking for in the HTML pane would look like this:
In your case, some JavaScript behaviour attached to the pseudo select element is probably preventing MT from selecting the options with regular click. Does that make sense? Thanks, |