JSFiddle - React, Tailwind, and code Playground

by Gabriele Petrioli

HTML

sddsf

JavaScript

//start of dummy declarations
var options={};
options.rowId=5;
function BlahFunc( anId ){
    alert('clicked on link about row id: ' + anId);
}
// end of dummy declarations

var link = $('<a>',{
    text:'i am a link',
    href:'#',
    'data-rowid':options.rowId,
    class: 'row-link'
});

//start dummy test to check for handler
link.appendTo('body');
//end dummy test

// get string version
alert( link.wrapAll('<div>').parent().html() );

// live handler for clicks to these elements
$('a.row-link').live('click',function(){
    BlahFunc( $(this).attr('data-rowid') );
    return false;
})