Grow your CSS skills. Land your dream job.

Adding HTML to content in javascript

  • # October 23, 2012 at 1:19 pm

    I am trying to add a form inside of a tooltip for an advanced search. This is going to have a form and a table in it.

    The plugin i am using is this one… http://ara-abcarians.com/jquery/atooltip/

    I am wondering if there is something that i can use to make this line recognize that this is html inside of here.

    tipContent: ‘Basic HTML Table and Form’, // Pass in content or it will use objects ‘title’ attribute

    Or if i could do it in the Title Attribute that would work as well.

    Any help would be great i am very basic with javascript

    Thanks

    # October 23, 2012 at 2:28 pm

    y a toolip? can u use a simple overlay instead?

    seems like you can throw in html:

    http://jsfiddle.net/WVAQ8/

    # October 23, 2012 at 3:00 pm

    I suppose that would be a lot easier then a tool tip huh? I was just kinda go off what our designer provided in the PSD file.

    # October 23, 2012 at 7:37 pm

    hope this helps.

    # October 23, 2012 at 7:38 pm

    sorry, tried to embed the pen…

    here is the link

    http://codepen.io/anon/pen/kjczy

    you can customize it more, currently because i replace the html with new html you probably have to add handler for close.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".