RE: How to simplify this?2004-09-21 09:20:58In the HTML-output I need a javascript function with ' mark. My template get two parameters, which I wish in single-quoted mark. So I define additional three variables for this. Is there a better way to do this? You don't need the variables, just write the apostrophies in directly: <a onclick="setArrow( {$colPos},'{$thead_id}'); return sortTable('{$tbody_id}',{$colPos} );"> ^ ^ ^ ^ cheers andrew
|
|