I'm trying to alter the years displayed in dropdown using the Pickadate.js but can't get it working. As of now the year dropdown list contains years that I don't want to see including the current year. Question is, how can I remove a range of years l
I want to add/remove CSS classes just like jQuery's $('#element').addClass('new_class') and removeClass(). Does AngularJS offer a native solution that doesn't require jQuery or jQLite? Our main developer says he's going to remove jQuery for performan
Please, explain how can I change 'selected' property of option? E.g.: <select id="lang_select"> <option value="en" selected="selected">english</option> <option value="ar">العربية</option&g
I have added check-boxes dynamically to all the element and successfully added the functionality to select all checkboxes but not able to do the selection for the parent child checkboxes in tree structure means if i select the "Asia" it should s
can I bind all the available events to an element $('body').on('all available events', '.element', function(e) { if (e.type == 'click') { // do something... } else if (e.type == 'change') { // do something else... } }); I do not want to give them ind
I spent quite a bit of time trying to come up with this today to no avail. I'm trying to select rows in a table having visible input elements but excluding the row that contains the input with focus. My best guesses: $('tr:has(input:visible)').not('t
My website has a problem. When I hover to a the fourth image, the images below falls apart, only on Mozilla but works perfectly fine with Chrome. I know its a CSS problem, I tried the -moz-border-radius but does not work. Here is the link to the webs
I'm still trying to wrap my head around json and getting access to the data. Here's my json format, which I hope is logical for the type of data I'm using... {"round1": [ { "category" : "north", "match1": [ { "
With .post of FORM data to express/node.js All of the values are currently stored and returned as STRings Am looking to have one of the data values (req.body.quantity) stored as an INT //POST app.post('/add', function (req, res) { db.collection('demo
I am looking to check a specific check box by calling its name. The name is c[featured_ad] and I will share what I've attempted below. Thanks for your help. JavaScript: <script type="text/javascript"> window.onload = function() { $('input:
One function is not working on IE8 but working on google chrome and firefox. XmlDom contain xml data $(XmlDom).find('Message').each(function(){ if($(this).attr('id')==id) { msg= $(this).find('messageText').text(); } }); plz help here is the sample da
I need to execute some code before leaving the browser, I implemented this: window.onbeforeunload = function () { return 'Are you sure?'; }; window.onunload = function () { releaseLocking(); }; It works pretty well with Google Chrome. When closing GC
I'm making an ajax request which is making bash treatment. Another action in my page uses an ajax request but this one is waiting the end of my first request for making what I'm asking. Do you have any idea for doesn't waiting the end of the first aj
Hi below text is a placeholder that is from js ,its color is #ccc .I need the textarea color as black ,right now it is taking placeholder color . <textarea id="txt1" class="txt1 required" name="comment1"></textarea&g
I have a carousel in this Shopify theme, and i am trying to edit it to make it automatically scroll to the next slide every 5 seconds (instead of having to click through to the next slide). Here is what I'm using for the carousel: //Carousel interact
I'm trying to have a page slide down and then another page slide up. But, for some reason, I can't figure it out. http://maximsiebert.com/unamed/Untitled-1.html If you look on here, you can see that if I click the About navigation link, the page slid
There are three fields(first name, Last name & age) displayed in text boxes. Each field is displayed in separate div's. There are 4 records. On clicking a sort button above each field the div records should be sorted based on the data type of the fie
I am trying to make jQuery UI widget work in my web application I got all the files from original demo, and basically did everything I could so the code and files were pretty much the same as in demo version. And all the time get this error: Uncaught
I've been developing in javascript for a few months and I have been using $(document).ready(function(){ at the beginning of all my scripts. I've noticed other folks don't use this in their scripts but I can't seem to get mine working without it. I'd
I'm new to JQuery. I have a page containing an applet, and I'd like to give the applet focus whenever the mouse is over it. $('#appletID').mouseenter( function(){ $('#appletID').focus(); console.log('Debug: entered applet.'); }); The code above seems
In my form I add one text box ($("#seltxt")) and one div having text inside. when I select the div text comes in a text box this works fine. Now i added function keypress in the #seltxt in key press event I am copying the textbox text to div. Bu
I have XML that looks like this: <executionResults> <results> <items> <item> <entries> <entry> <key>name</key> <value>user1</value> </entry> <entry> <key>id</key> <valu
I am using jquery lava lamp menu. I want to add current class on li tag not a tag this is my menu <div> <ul class="lavaLamp"> <li><a href="index.php">Home</a></li> <li><a href="about.ph
I'm looking for a way to call a function every N seconds in order to update data displayed on the page. Is there a built-in functionality to accomplish this task or do I have to do it by myself?There are the window.setTimeout and window.setInterval j
This is probably a very simple task to perform but I'm taking the risk to ask anyway. I have an object variable that looks like this: var MyObj = {"Param1": "Default", "Param2": "test", "Param3": 3 }; I'm
This is driving me mad: // Get the comment template var comment = $('#CommentTemplate').html(); // Delete all entered text $("textarea#NewComment").val(''); // Get comments returned ID var ThisCommentsID = data.substring(2, data.length); var d =
I'm already tossing around a solution but as I haven't done something like this before I wanted to check what SO thought before implementation. Basically I need to modify an existing web based application that has approximately 20 users to add push n
I want to toggle the next sibling of a link in a list like this, <ul> <li><a href="#">1</a></li> <li><a href="#">2</a> <ul class="selected"> <li><a href="#&q
I have a nested list: <ul> <li><a href='#'>stuff</a></li> <li><a href='#'>stuff2</a></li> <ul> <li><a href='#'>stuff3</a></li> </ul> <li><a href='#'>stuf
I'm trying to obtain a specific li element from a unordered list. I'm doing it this way: var listItem = $('ul.selectedItems').filter(list[i].ID); Any idea of why this isn't working?The filter method takes a regular jQuery selector, so you should be w