Jump to content
Sign in to follow this  

Find li tag and execute attached click function

Recommended Posts


in my razor view I have below html

<li class="btn-go-to-template-builder">
    Template builder

and corresponding script function

$(".btn-go-to-template-builder").click(function () {
    window.location.href = actions.templateBuilder.emailTextTemplates;

that navigates to another view in my asp.net web application (the above described razor view works properly).

I have tried to find the li tag with below autoit script, 

$tags = _IETagNameGetCollection($oIE,"li")
For $tag in $tags
   $class_value = $tag.className
   If $class_value = "btn-go-to-template-builder" Then
        _IEAction ($tag,"click")

but nothing happens.

Please help.

Regards, Manu

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

  • Create New...