I would like to retrieve the Selected value from a SharePoint List Filter to use in a url. I have the following code in a CEWP on the same page as the SP List Filter that returns an alert box to test the result for now. This script is returning all data within the web part instead of only the selected value.
$(document).ready(function() {
var filterValue = $("#WebPartWPQ5").text();
if (filterValue != null) {
alert("filter value is: "+ filterValue);
}
});
Thanks in advance,
Jason