First have you loaded the associated bootstrap JS? I just load the minimized version with all plugins. If yes, then are you using firebug? If so click on the DOM tab, drill into the jQuery object - jQuery.fn. Do you see alert?
On Mon, Mar 26, 2012 at 8:30 PM, Henry Finkelstein <[email protected]> wrote: > Nope, sadly that didn't do it. I added the href, saw the X as a clickable > link with my mouseover, and # appended to my URL when I click on it - > behavior is as I would expect for an action. > > So I'm not crazy that my initialization looks as it should, right? > > > On Monday, March 26, 2012 12:40:29 PM UTC-7, John Roberts wrote: >> >> Try adding an href="#" to your link. Some browsers are finicky about the >> presence of an href to make a link clickable. >> >> On Monday, March 26, 2012 12:22:48 PM UTC-7, Henry Finkelstein wrote: >>> >>> Total newb question: I have both the carousel and alerts on my page, and >>> I have no problem initializing the carousel but seem to have trouble with >>> the alert. I've included the js file, and here is my initializing script >>> >>> <script type="text/javascript"> >>> $(document).ready(function(){ >>> $('#myCarousel').carousel('cycle'); >>> $(".alert").alert(); >>> }); >>> </script> >>> >>> and my alert: >>> <div class= "alert alert-success fade in"> >>> <a class= "close" data-dismiss="alert">×</a> >>> Thank you, we received your information and will be in touch with >>> you shortly. >>> </div> >>> >>> I see the alert and (x) just fine, but can't close it. What am I >>> missing? >>> >>> Thanks!
