jquery string to function convert
Questions
is this possible?
Basically i would like use an attribute btw jQuery.call() is for demonstration purposes it doesn’t work… |
————————————————-
Answer
You would use
The reason this is bad, is you are not separating function from structure. HTML is meant to describe structure, not interactivity and function. JavaScript is meant to provide that interaction and enhancement, but not structure. Using the jQuery inline like that is a violation of that separation. Just food for thought… |
attr,jquery |
Facebook Comments