Notobamnbum
New Member
I have a bit of an odd question. How could you generate an automatic click on a div, which I am obtaining from C#, via javascript without having an ID for that div? As a rough idea, what I am trying to do is the following (in layman's terms):[*]From C# side I am parsing the html document and locating the actual div that I need. Example div class="CLASSNAME">CONTENT /div[*]I need to pass this div somehow to a javascript function from the code-behindExample Page.RegisterStartupScript("myScript", FUNCTION_NAME(DIV_HTML);[*]In javascript generate an automatic click on this div element which I have just passedI somehow cannot understand how the javascript function could generate a click on the div by having the HTML of this div as a parameter. Any ideas please guys?Much thanks,Jean