6
Answers

How to load the html element when click on anchor tag in web

I want to load the html contents of a div element that is displayed after we clicked on the anchor tag. I am already loaded the html contents of anchor tag and also clicked it by btn.Invokemember("Click"). But after that a div element is loaded in a html document. So how can I loaded that div element. Any help will be greatly appreciated
Answers (6)
0
Sourabh Choubey

Sourabh Choubey

NA 186 9.3k 7y
AVINASH can i implement this in wpf webbrowser control and how??
0
Sourabh Choubey

Sourabh Choubey

NA 186 9.3k 7y
I AM USING WEBBROWSER CONTROL IN WPF .IS IT POSSIBLE TO LOAD THE HTM ELEMENT WHEN I CLICKED ON ANCHOR TAG??
0
Avinash Aher

Avinash Aher

NA 260 594.3k 7y
 $('a').click(function(e)
{      
   e.preventDefault();   
   $("#content").append('<div>Test Content</div>');
 });

OR 

 $('a').click(function(e)
{ 
   e.preventDefault(); 
   $("#content").load('test.html');
 });
and test.html have your own html which you want to load in page


0
rajendra singh

rajendra singh

NA 382 421 7y
You Want Load Html Content Of Div when you click on anchor tag if this right
 
so you can do with jquery using display none and block property 
0
Sourabh Choubey

Sourabh Choubey

NA 186 9.3k 7y
sorry it is official...i only want how to do that 
0
rajendra singh

rajendra singh

NA 382 421 7y
Can You Share Your Code