Click here to Skip to main content
15,921,062 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have one link button in span . and above multiple span and div class.
i describe code in short.

What I have tried:

<div class="fstdiv">
<div>
<span></span>
</div>
<div>
<span></span>
</div>

<div>
<span><asp:linkbutton runut="server" Eval("Name")></span>   //list of name 
</div>
</div>


$('.fstdiv').click(function()
{
//click this linkbutton.how can i do this click.
});
Posted
Updated 19-Sep-17 17:23pm

1 solution

use
$('.fstdiv a')

LinkButton will be rendered as anchor tag in the browser
 
Share this answer
 
Comments
Jaydeep Shah 20-Sep-17 0:25am    
$('.fstdiv a').click(function()
{
//what code i add here . //for click this linkbutton.
//
});
Karthik_Mahalingam 20-Sep-17 0:29am    
The operation you want to perform
Jaydeep Shah 20-Sep-17 1:16am    
<asp:linkbutton runut="server" Eval("Name")> on this click event is
goes to backend side.

so what i want if user click $('.fstdiv a'). same behave like it's click on link button.
Karthik_Mahalingam 20-Sep-17 3:11am    
$('.fstdiv').click(function()
{
$('.fstdiv a').click();
});
Jaydeep Shah 20-Sep-17 5:29am    
it's not work. it's list in update panel !

$('.fstdiv').click(function()
{
$('.fstdiv a').click();
$('#ContentPlaceHolder1_RoomListView_room_2 a').click(); i also try to add static but nothing happen. room id in console it become contantplaceho....
});

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900