Impromtu switch does not work

I like to have a popup modal dialog that should display a list of options (like a radio button selection event). But I don't know what I am missing! It works great when the HTML tag is not embedded in Impromtu. Do I include it in CSS?

<html>
    <head>
        <LINK REL=StyleSheet HREF="examples.css" TITLE="Contemporary" TYPE="text/css">
        <script src="jquery-1.2.6.js" type="text/javascript"></script>
        <script src="impromptu.1.6.js" type="text/javascript"></script>
        <script>
            $(document).ready(function(){                
               $.prompt( '<input type="radio" name="group1" value="Milk"> Milk<br>',{ opacity: 0.2 });                
            });            
        </script>
    <body>
    </body>
</html>

      

When I run this, no buttons appear in the popup dialog.

0


source to share


1 answer


All you told Impromtu was to show the "Milk" message inside the popup. You haven't provided any switch markup.

You will need something like:



$(document).ready(function(){ 
        $.prompt( '<input type="radio" value="1">Milk</input>',{ opacity: 0.2 }); 
}); 

      

+1


source







All Articles