Jump to content

Find li tag and execute attached click function


Recommended Posts

Hello,

in my razor view I have below html

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

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, 

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

but nothing happens.

Please help.

Regards, Manu

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...