I’m using a jQuery plugin to change a select box to segment buttons. Here is the info on the plugin:
I’m displaying the buttons within a grid.
They display fine the first time, but if the grid is altered thru page navigation, or the search button, they revert back to a selection box.
What event would I use to refire the function after a grid navigation and or sorting?
The $(".segment-selectp").Segment(); part, below, draws the buttons fine the first time, but I’m trying to figure out what to do after that?
Your help in this matter is greatly appreciated…
<script type=“text/javascript”>
jQuery(function($){
$(".segment-selectp").Segment();
$(".segment-selectp").on(“onchange”, function(){
$(this).Segment();
});
});// jQuery function
</script>’;