{"action":"created","issue":{"url":"https://api.github.com/repos/ethaizone/Bootstrap-Confirmation/issues/25","labels_url":"https://api.github.com/repos/ethaizone/Bootstrap-Confirmation/issues/25/labels{/name}","comments_url":"https://api.github.com/repos/ethaizone/Bootstrap-Confirmation/issues/25/comments","events_url":"https://api.github.com/repos/ethaizone/Bootstrap-Confirmation/issues/25/events","html_url":"https://github.com/ethaizone/Bootstrap-Confirmation/issues/25","id":54394892,"number":25,"title":"i cant pass a value on confirm","user":{"login":"JohnnyB3","id":458181,"avatar_url":"https://avatars.githubusercontent.com/u/458181?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnnyB3","html_url":"https://github.com/JohnnyB3","followers_url":"https://api.github.com/users/JohnnyB3/followers","following_url":"https://api.github.com/users/JohnnyB3/following{/other_user}","gists_url":"https://api.github.com/users/JohnnyB3/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnnyB3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnnyB3/subscriptions","organizations_url":"https://api.github.com/users/JohnnyB3/orgs","repos_url":"https://api.github.com/users/JohnnyB3/repos","events_url":"https://api.github.com/users/JohnnyB3/events{/privacy}","received_events_url":"https://api.github.com/users/JohnnyB3/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-01-14T23:56:49Z","updated_at":"2015-06-23T07:52:34Z","closed_at":"2015-06-23T07:52:34Z","body":"how do i pass a value when someone selects the yes(confirm) popup???\r\nnothing i do works\r\ni did get it to say confirm(in the alert in the code) so i know its working, i just cant read any values at all\r\nwhat am i doing wrong please\r\n\r\n[code]\r\n $(\".remove_record\").confirmation({\r\n        trigger: 'click',\r\n        singleton: true,\r\n        btnOkLabel: '<i class=\"fa fa-check-circle-o\"></i> Yes',\r\n        btnCancelLabel: '<i class=\"fa fa-times\"></i> No',\r\n        placement: 'top',\r\n        onConfirm: function(){\r\n      \t\t//var $embellishment = $(this);\r\n      \t\t//alert($embellishment.data(\"data-f_id\"));\r\n      \t\tvar id_data = $(this).attr('data-f_id');\r\n      \t\tconsole.log(\"id: \"+id_data);\r\n      \t\tconsole.log(\"href: \"+$(this).attr('href'));\r\n        \t//alert(\"Confirmed\");\r\n        \t//var idx = $(this).data('f_id');\r\n        \t//var idx = $(this).attr('data-f_id');\r\n        \t//alert('remove - '+idx);\r\n      \t\t$('.remove_record').confirmation('hide');\r\n        }\r\n    });\r\n\r\n\t<a href=\"#?facility_id='.$items['Facility_ID'].'\" class=\"btn btn-danger btn-sm remove_record\" style=\"color:white;font-weight:bold;\" name=\"remove_record\" id=\"remove_record\" style=\"cursor:pointer\" data-f_id=\"'.$items['Facility_ID'].'\" data-title=\"DELETE: '.$items['Facility_Name'].'. Are you sure? This CANNOT be undone!\" ><i class=\"fa fa-trash-o fa-fw\"></i> Delete</a>\r\n\r\n[/code]\r\n\r\ni tried using the data-toggle=\"confirmation\" but that didnt work either\r\n\r\nthank you in advance for any help you may provide"},"comment":{"url":"https://api.github.com/repos/ethaizone/Bootstrap-Confirmation/issues/comments/114395417","html_url":"https://github.com/ethaizone/Bootstrap-Confirmation/issues/25#issuecomment-114395417","issue_url":"https://api.github.com/repos/ethaizone/Bootstrap-Confirmation/issues/25","id":114395417,"user":{"login":"ethaizone","id":1168777,"avatar_url":"https://avatars.githubusercontent.com/u/1168777?v=3","gravatar_id":"","url":"https://api.github.com/users/ethaizone","html_url":"https://github.com/ethaizone","followers_url":"https://api.github.com/users/ethaizone/followers","following_url":"https://api.github.com/users/ethaizone/following{/other_user}","gists_url":"https://api.github.com/users/ethaizone/gists{/gist_id}","starred_url":"https://api.github.com/users/ethaizone/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ethaizone/subscriptions","organizations_url":"https://api.github.com/users/ethaizone/orgs","repos_url":"https://api.github.com/users/ethaizone/repos","events_url":"https://api.github.com/users/ethaizone/events{/privacy}","received_events_url":"https://api.github.com/users/ethaizone/received_events","type":"User","site_admin":false},"created_at":"2015-06-23T07:52:34Z","updated_at":"2015-06-23T07:52:34Z","body":"I'm sorry that I don't make code support for this case. Solution from @dikkeduif is correct. I will not fix it because it come long way to fix and nature of popover that will create new element as sibling."}}