Check Output and -->question. .
I am a beginner in utilizing Bootstrap and JQuery for programming. I am interested in learning how to identify the "id" of an input element that is nested within another element's attribute.
In my code, I am using Bootstrap for popover functionality. When clicking on an <a></a>
link, a popover is generated, but I am seeking a way to capture the id of an element inside the data-content attribute of the anchor tag.
The following snippet shows the section where I am selecting the anchor and displaying the popover. Now, I aim to retrieve the id contained within the anchor tag, specifically within the data-content attribute of the anchor element.
$("a").popover(
{
delay:1000,
html: true,
})
This piece of HTML contains an anchor tag with Bootstrap attributes and an embedded html element within the data-content. I intend to extract the ID of the input element inside the data-content attribute of the anchor tag.
Is there a solution for this?
<a href="#" data-toggle="popover" title="Username:" data-content='<input id="Uname" data-toggle="popover" data-trigger="focus" data-content="You are Successfull!!!!" type="text"/><input id="btnEdit" type="button" value="Edit" />'></a>
Any suggestions on how to achieve this?
Looking forward to your insights.