empeypp

Using Jquery in an Info Window

Discussion created by empeypp on Jan 31, 2012
Latest reply on Feb 2, 2012 by MDriscoll-esristaff
Hello, I am developing a campus map and need some help! I am attempting to add a jquery slider in an info window to give the user a "more information" option" However, I'm not quite sure how to add ta jquery element into a info window. Can someone please tell me what's wrong with this code?

   var infoTemplate = new esri.InfoTemplate();
        infoTemplate.setTitle("<b>${BldgName}</b>");
        infoTemplate.setContent("${Type}<br/>"
  + "${Hours}<br/>"
  + $(document).ready(function(){
    $(".flip").click(function(){
                                $(".panel").slideToggle("slow");
                         });
                   })
  );

Outcomes