I'm having an issue trying to insert java scripts into an existing php page (which I didn't create).
What I'm trying to do is use a script that hides DIV's based on Dates. The div's have a lot of calls to PayPal for items that are time sensitive, and I'm trying to have the web page only display the currently available options.
Currently, I have this in the head: script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1 jquery.min.js"
/script
(I do have < and > before and after the code lines, but for some reason it won't let the line display on this post if I include them!)
I have this before the end of the body:
var now = new Date();
var futuretime1 = new Date("April 23, 2015 07:57:00");
var futuretime2 = new Date("April 23, 2015 07:58:00");
if(now > futuretime1)
{
$("#div1").hide();
if(now > futuretime2)
{
$("#div2").hide();
}
</script>
This doesn't seem to even be recognized when the page runs in Firefox.
I've tried several different javascripts that are suppose to do the same thing, and none seem to be recognized. I'm pretty new to coding, so I don't know where to go from here!
Could really use some ideas!
ifis missing a closing bracket}.