jQuery addClass example

Change class name on click in jQuery

HTML

<script src="https://jqwidgets.com/public/jqwidgets/jqx-all.js"></script>
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.base.css">
<link rel="stylesheet" href="https://jqwidgets.com/public/jqwidgets/styles/jqx.bootstrap.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap-theme.min.css">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/bootbox.js/4.4.0/bootbox.min.js"></script>
<div id="grid">

</div>

CSS

.jqx-cell-link{
  background-color: transparent;
  font-size: 13px;
  color: #337AB7;
}

.jqx-cell-link:hover{
  cursor: pointer;
}

.jqx-cell-link:active,
.jqx-cell-link:hover {
  outline: 0;
}

.jqx-cell-link:hover,
.jqx-cell-link:focus{
  color: #23527C;
  text-decoration: underline;
}

.jqx-cell-link:focus{
  outline: thin dotted;
  outline: 5px auto -webkit-focus-ring-color;
  outline-offset: -2px;
}

.jqx-grid-cell-selected-bootstrap .jqx-cell-link {
  color: #FFFFFF !important;
}

JavaScript

var custom = function(name){
	bootbox.alert({
  	title: "A Generic Alert",
    message: "You clicked the custom widget for " + name,
    className: "info",
    size: "medium"
  });
};

var data = [{
	name: "John",
  age: 25,
  customData: "custom1",
  longBlob: "The quick brown fox jumped over the fence and then went over a hill to check what was on the other side, but he did not stop there. He kept going so as to make this a longer blurb about nothing in particular just to demonstrate a row that will auto-expand due to one cell being quite a bit longer than all of the other cells in that row."
}, {
	name: "Jane",
  age: 27,
  customData: "custom2",
  longBlob: "The quick brown fox jumped over the fence and then went over a hill to check what was on the other side, but he did not stop there. He kept going so as to make this a longer blurb about nothing in particular just to demonstrate a row that will auto-expand due to one cell being quite a bit longer than all of the other cells in that row."
}, {
	name: "Jenny",
  age: 22,
  customData: "custom3",
  longBlob: "The quick brown fox jumped over the fence and then went over a hill to check what was on the other side, but he did not stop there. He kept going so as to make this a longer blurb about nothing in particular just to demonstrate a row that will auto-expand due to one cell being quite a bit longer than all of the other cells in that row."
}, {
	name: "Jack",
  age: 35,
  customData: "custom4",
  longBlob: "The quick brown fox jumped over the fence and then went over a hill to check what was on the other side, but he did not stop there. He kept going so as to make this a longer blurb about nothing in particular just to demonstrate a row that will auto-expand due to one cell being quite a bit longer than all of the other cells in that row."
}];

var source = {
	localdata: data,
  datatype: "array",
  datafields: [{
  	name: "name",
    type: "string"
  }, {
  	name: "age",
    type: "number"
  }, {
  	name:...