troubleshooting Question

JQuery event trigger problem

Avatar of gaugeta
gaugeta asked on
11 Comments1 Solution522 ViewsLast Modified:
Hi Experts...
I have a html code where i am not able to trigger a jquery date time plugin using an onclick event from a javascript code but its working when i use a ready jquery function.
Please help...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" ""> 
<html lang="en" xmlns="">

  <link rel="stylesheet" media="all" type="text/css" href="jquery-ui-1.8.16.custom.css" />
   <style type="text/css">
   #ui-datepicker-div{ font-size: 80%; }

   /* css for timepicker */
   .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
   .ui-timepicker-div dl { text-align: left; }
   .ui-timepicker-div dl dt { height: 25px; }
   .ui-timepicker-div dl dd { margin: -25px 10px 10px 65px; }
   .ui-timepicker-div td { font-size: 90%; }
   .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
<script type="text/javascript" src="jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="jquery-ui-1.8.16.custom.min.js"></script>
<script type="text/javascript" src="jquery-ui-timepicker-addon.js"></script>

<script type="text/javascript">

function load()
 showSecond: true,
 timeFormat: 'hh:mm:ss'

 <input type="text" name="example6" id="example6" value="" />
<img src="Calendar_small.gif" onclick="load()"/> 


Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 11 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 11 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros