LESS is a CSS pre-processor, it only defines the style, see www.lesscss.org
That snippet is javascript.. So put in in a script somewhere (see the jQuery basiscs http://docs.jquery.com/How_jQuery_Works ) On Tue, May 15, 2012 at 10:26 PM, C.L. Simco <[email protected]>wrote: > Hi and thanks in advance. I did a search through the posts to see if this > has been clearly solved and it seems it has, but not clear enough so that I > can see what I am not doing correctly. Can anyone explain which files I am > to modify, add to, and what to add, etc? > > I'm not asking for someone to do for me but instead help me understand the > process and the correct way. Perhaps some basics will help others as well. > > I used the tooltip on this link with an img: > > <a href="gift_card.html" rel="tooltip" title="Give Someone You Love the > Gift of Healing" target="_blank"><img src="images/banner_ses.png" alt="gift > card" height="232" width="490" style="max-width:100%;"></a> > > I am just trying to start off with the basic tooltip and "get it fired > off". > I found this snippet from a post and plugged it into "style.less". > > // tooltip > $('.tooltip-demo.well').tooltip({ > selector: "a[rel=tooltip]" > }) > > Instead of the tooltip working I get the following error from the browser > (safari): > ====================================== > Syntax Error on line 135 > > in style.less<http://192.168.1.147:8888/sites2/new_encino_massage/style.less> > on > line 135, column 1: > > - 134 > > > // tooltip > > - 135 > > > $('.tooltip-demo.well').tooltip({ > > - 136 > > > selector: "a[rel=tooltip]" > > - > > > =================================== > > > Thanks again............ >
