[jQuery] Checkbox perpetually marked as checked
Hello, I'm trying to write an if else statement in javascript so that when a check box is checked, a table will appear, and when it is checked again, another box will appear. However, the checkbox is constantly marked as checked, and I do not know why. I did not set any checked attritube to false or true. What gives? function GetStoryPoints() { var ownerCheck; var creatorCheck; if (document.getElementById("ownCheck").checked = true) ownerCheck = true; else ownerCheck = false; if (document.getElementById("createCheck").checked = true) creatorCheck = true; else creatorCheck = false; if (ownerCheck && creatorCheck) { $.post('/StoryPoint/ListSpecific?retrieveOwned=' + ownerCheck + '&retrieveCreated=' + creatorCheck + '&creatorID=' + $ ("#UserList > option:selected").attr("value"), null, function(data) { $("#storyPointDetail").html(data); }, "html"); } else if (ownerCheck && !creatorCheck) { $.post('/StoryPoint/ListSpecific?retrieveOwned=' + ownerCheck + '&retrieveCreated=' + creatorCheck + '&creatorID=' + $ ("#UserList > option:selected").attr("value"), null, function(data) { $("#storyPointDetail").html(data); }, "html"); } else if (!ownerCheck && creatorCheck) { $.post('/StoryPoint/ListSpecific?retrieveOwned=' + ownerCheck + '&retrieveCreated=' + creatorCheck + '&creatorID=' + $ ("#UserList > option:selected").attr("value"), null, function(data) { $("#storyPointDetail").html(data); }, "html"); } }
[jQuery] noob question, computability issues with a different date picker
Hello everyone, I tried posting a message before, but it didn't get posted, so here's another go. I'm completely new to jquery development and I wanted to use this date picker, since it also uses time as well http://razum.si/jQuery-calendar/TimeCalendar.html However, it did not say what to do, how, or where to change or add the code of his particular date picker with the standard one given in the UI code provided (his code is given through page source, then at top, the jquery.js and jquery-calendar.js files) . Is there a viable solution to getting his code working to get the calendar and time picker? Also, does the fact that his jquery.js file is running 1.1.2 make a difference. If my last message got posted, I apologize for double posting
[jQuery] datepicker help and utilizing other code
Hey everyone. I'm new to jQuery development and I'm trying to do something with the date picker. See, I wanted to use this particular date picker on this site : http://razum.si/jQuery-calendar/TimeCalendar.html because it also implements time. When viewing his page source, and then viewing the js files, I noticed that his calender script is different from that of the datepicker script given when downloading the jQuery files on this website. If I wanted to use his code, what would I do, and how would I do it? Is replacing the datepicker code with his code the thing to do? Also, I noticed that his jQuery.js file is supposedly running on 1.1.2, according to the comments. Does this affect anything? Much appreciated.