DataTables logo DataTables

via Ad Packs
fnRender to center the text
  • I have am using following code to build a table, how do i center the link created by fnRender function
     { "mDataProp": "iscitydefault", "sClass": "center"  },
    { 
        	            		  "fnRender": function ( oObj ) {
                                            var text = "<a href=\'#\' onclick=\"javascript:changeAvailable("+ oObj.aData.isavaibale+")\" >" + Obj.aData.isavaibale  "</a>";
        	            		      return text;
                                      }
    }
    

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Support

Get useful and friendly help straight from the source.