Im building a website at the moment and and i have a problem about getting the div id on the button click where div button contains button.
<div id="div" class="tab-content" title="Foods">
<div class="container">
<div class="row">
<div class="col-lg-2">
<div class="tabs-block">
<asp:Button ID="btnSend" runat="server" OnClick=""/>
</div>
</div>
</div>
</div>
</div>
</div>
This is the code which is not my code but similar. What i am trying to that is when i click the btnSend button i need to get the tab-contents id and the title which is "food", im trying to take the title with javascript and jquery and after that im gonna use it on my background code which is
protected void btnSend_Click(object sender, EventArgs e)
{
try
{
string message = "";
message += "<p>"Title here" Resevation Form </p><br />";
{
}
i need the use that title on the background code which is "Title here"