JS datepicker not popping-up in DIV

Javascript coding ..

Moderators: macek, egami, gesf

HeadlessMonster
New php-forum User
New php-forum User
Posts: 4
Joined: Thu Jan 19, 2012 7:55 am

JS datepicker not popping-up in DIV

Postby HeadlessMonster » Thu Jan 19, 2012 8:03 am

Hello,

Noob here with a frustrating JS problem:

I have a JS datepicker that successfully pops up on my PHP page (a form), but it doesn't pop-up in a DIV (the DIV is a JS show/hide).

Any thoughts or suggestions?

Code: Select all

<script type="text/javascript">   
   $(function(){
        $('#content_ready').daterangepicker({arrows:false});
    });
</script>


Code: Select all

<input type="radio" name="previous_version" value="No" <? if($request == "No"){ ?> checked="checked" <? } ?> onclick="javascript:showStuff('previousno')">No<br />
                            <div id="previousno" style="display:none">
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Content will be ready by:<br />
                                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<input name="content_ready" type="text" value="<?=$content_ready?>" id="content_ready" size="30px"/>
                            </div>


-HM

Return to “JavaScript”

Who is online

Users browsing this forum: No registered users and 2 guests

cron