Hi I'm trying to code a webpage using node.js and jade. I'm trying to add a custom attribute to a button, like in HTML:
<input type = "button" specialID = someSpecialID, onclick="doSomething(specialID);">
where someSpecialID is a value passed into the template by the node server. I've tried:
input(type = "button", specialID = someSpecialID, onclick = "doSomething(specialID);")
and:
input(type = "button", onclick = "doSomething(specialID);")
specialID = someSpecialID
but the custom attribute doesn't seem to take. I keep getting the error that specialID is not defined.
I'm still somewhat new to node.js and jade, so I'm sorry if this is a trivial question. I'd greatly appreciate any help on this.