Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can i retrieve element and position data? #25

Open
Puddingboy opened this issue Aug 12, 2016 · 0 comments
Open

How can i retrieve element and position data? #25

Puddingboy opened this issue Aug 12, 2016 · 0 comments

Comments

@Puddingboy
Copy link

Puddingboy commented Aug 12, 2016

I am using Javascript Custom Forms which replaces some elements with fake ones. In the case of select elements it moves them 9999 px to the left.

I would usually do something along the lines of:

    function positionForSelect(event){
        var e = window.event || event;
        var t = e.target || e.srcElement;
        if (t.nodeName.match(/select/i)) {
            // move errormessage 9999px to the right
        } else {
            // normal behavior
        }
    }

*edit: I want to position the error validation message next to the fake select

Can you help me out on this one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant