I want to create a button by using function below, example createGetInfo(120,Test,1) I want the result become a 'Test' button with 120 width but the function below fail, How can I put the parameter inside the button tag?
function createGetInfo(size,wording,filter) {
var GetInfo = $("<button class='eqGroupBtn' type='button' class='btn' style='width:size'>wording</button>");
secondLevelMenuDiv.append(GetInfo);
GetInfo.click(function(){
Do something...
});
};