score:2
Accepted answer
I have tried using ".tile div" instead ".tile" in calling func "highlightElem" .
$(".tile div").on('click',function(){
highlightElem($(this));
});
Also In "highlightElem" updated the code with "closest()"
function highlightElem(elem) {
if (oldElem !== null) {
oldElem.closest('.widget').css("border-color", "#ccc");
}
elem.closest('.widget').css("border-color", "black");
oldElem = elem;
}
http://jsfiddle.net/vchbg/24/
Source: stackoverflow.com
Related Query
- call function onclick highchart
- Call a function from within highchart click event in reactjs
- How to call a function after Highchart animation complete In Anguler?
- React highcharts unable to call function from data label onclick
- How can i call java script function by clicking x Axis label on Highchart
- Call an angular component method when we click on highchart series
- Highcharts: Context Menu Button, onclick function
- How to call typescript function inside High chart click event
- onclick popout highchart piechart
- using angular directive to draw highchart pie chart but when i am using it in success function it is not working
- Highchart is not working in jquery function
- Highcharts error #13 while instantiating highchart on ajax call
- How To Call A Function To Make A Graph Using HighCharts in PHP
- Passing callback function to labelFormatter in highchart legend in typescript
- Ruby on Rails: Passing string array to highchart function
- Highchart, edit data from function call with arguments
- "TypeError: c.slice is not a function" when trying to call a function within JQuery
- Highchart tooltip & events from external function
- Vue js + HighChart - how can I make a synchronous axios call before the component get rendered?
- TypeError: p is not a function while calling map function in angular 4 for fetching series for bellcurve highchart
- Setting Min and Max values for more than two Highchart Solid Gauges using function
- Highchart formatter function executed twice every time
- Highchart export, execute function after completion
- i want to show/hide y axis grid lines of highchart by onclick on button
- Highchart Drilldown with data call when clicked
- Highcharter package not found - highchart function not available
- How to call Highcharts tooltip formatter function from outside the config object?
- How to call a function in kendo
- Populate Highchart with data from a python function
- Strange character in the Highstock source code
More Query from same tag
- Highcharts Maps labels don't all show
- HighCharts onclick this.point.name is undefined
- Highcharts Line Chart Drill down not working properly
- HighStocks Series Data format
- How to position the customed tootip of HighCharts?
- Loop in xAxis from highcharts according to returned data
- HighCharts Semi-Pie Circle
- HighCharts: Labels visible over tooltip frame
- Highcharts Bar Chart Without Column
- highcharts correct json input
- Change data hover line color in Highcharts
- how to update renderer.text() in highcharts after a graph has been drawn?
- How to display a Bar Chart in DataTable
- Highcharts convert: not showing pie chart data labels
- Missing axis in Hightcharts
- How to add exporting date and time as user format in Highcharts exporter?
- Higcharts - How to remove groupPadding from the beginning of the chart
- javascript associative array, looping, and / or scope issue with Highcharts JSON call
- Find and fill intersection of line chart with plot line in highcharts
- Highchart Combochart Rendered Wrong
- Why does HighCharts reverse the order of my series?
- Highcharts, stacked column range with date in y-axis
- maxPadding on highstocks
- Ember Js, Ember-Highcharts not updating changes to chartData
- Highcharts IE8 - Error on page
- HighCharts tooltip pointFormat not updating label
- My Highchart graphs are really slow when I choose 30 day graphs
- highcharts-angular : Cannot read property 'chart' of undefined
- Highlight point in Highcharts scatter graph?
- Highcharts : How to apply style to x-axis Labels?