How to get custom javascript to run

Posted By vswell Sat 31 Oct 2015
Add to Favorites0
Author Message
vswell
 Posted Sat 31 Oct 2015
Supreme Being

Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)Supreme Being - (658 reputation)

Group: Forum Members
Last Active: Sat 7 Nov 2015
Posts: 1, Visits: 10
658
Hi All-

I made a custom page that uses a jquery datepicker function and it was operational before adding kartris to my site. However, post-kartris, now it's not working. I tried adding the function to the <head> section of the template (which didn't work), and also tried making an external js. file that was referenced in the template. Has anyone had success in this area (or even ajax, etc)? I'm not too experienced with javascript. Here's the original function I used:

<link rel="stylesheet" href="//code.jquery.com/ui/1.11.4/themes/smoothness/jquery-ui.css">
<script src="//code.jquery.com/jquery-1.10.2.js"></script>
<script src="//code.jquery.com/ui/1.11.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<script type="text/javascript">
$(function () {
$("[id$=Box]").datepicker({
showOn: 'button',
buttonImageOnly: true,
buttonImage: 'https://jqueryui.com/resources/demos/datepicker/images/calendar.gif'
});
});

</script>

It basically adds a datepicker calendar to the text boxes of a datalist that have "Box" as part of their ID....

Thanks!

Threaded View

Expand / Collapse

Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Back To Top