Tell me more ×
Web Applications Stack Exchange is a question and answer site for power users of web applications. It's 100% free, no registration required.

I am not very proficient with JS and currently I have the links that have the onclick event

<p><a onclick="return dateSelected('2012-10-23', '2')" href="#">2012-10-23</a></p>

<script>
function dateSelected(date, id){
    function1(date,truckid);
}
<script>

now I added this, but I have no idea how to trigger the event to click:

<div id="datepicker"></div>
<script>
            $(function() {
                $( "#datepicker" ).datepicker();
            });
<script>
share|improve this question

closed as off topic by Al Everett, phwd Oct 23 '12 at 19:59

Questions on Web Applications Stack Exchange are expected to relate to web applications within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

Browse other questions tagged or ask your own question.