I am asking for help to solve the problem renaming the strings in array that looks like this: ["a(1)","a(6)","a","a","a","a","a","a","a","a","a",
dft=["t", "h", "i", "s", "I", "s", "S", "p", "i", "n", "a", "l", "T", "a", "p"]; ans=[4, 6, 12, -1]; for(
I'm trying to validate a phone number input field in a form. I'm using intl-tel-input (which is great, BTW) to get the extension and full number, then pass the value to a hidden field so I can send the form data to the server. This is the displayed f
Maybe I didn't constructed my question very good but I am trying to add to an HTML page a drop down menu and when an option is selected it should display some price and everything is fine by now, but when I add multiple dropdowns the price is showed
I am trying to create an animated logo inspiration : http://codepen.io/pavlunya/pen/OPmVem I am getting error when I use document.getElementById instead of document.getElementsByTagName Jsfiddle Thanks in advance for helpThe reason p is null is becau
I am building a jQuery based web app and I want to use URL parameters to navigate around it. I would like to display content based on the URL parameter, with the 'load()' function getting the main body of the web page from an external URL and replaci
I have a page that has a header and sidebar with a right content panel that is an Iframe. In a page loaded into the right content panel, I am trying to have a clicked link update the Browser URL in the parent window to the URL of the new page that is
The following uses Form buttons to mark photographs as different qualities. If Quality 1 or Quality 2 or chosen the php code should fire. However if "delete" is chosen instead of assigning a quality I would like an "Are you sure" valid
I've managed to setup a simple registration form with Polymer: <polymer-element name="app-registration"> <template> <style> ... </style> <section> <paper-input class="username" .... ></paper-input
I want the child div width to be 100% of the body. CSS #container { position:relative; width:400px; height:100px; margin:0 auto; background:red; } #inner { width:100%; height:30px; background:blue; } HTML <div id="container"> <div id=&q
CoffeeScript compiled this code: mod = (num) -> num % 2 into: // Generated by CoffeeScript 1.7.1 (function() { var mod; mod = function(num) { return num % 2; }; }).call(this); How can I call this JavaScript immediate function? For example, I'd like t
I have an email page that loads up when I click on a button. The 'To:' field is containing too many emails and I would like to run a script for when the page loads to check if the box contains a semi-colon and if it does, it should remove the semi-co
In the following code, why doesn't it change the color of the ball back to red if I click on it again? <!DOCTYPE html> <html> <body> <script> function farbe1(){ var stern_style = document.getElementById('kugel1').style; var click;
I have a javascript function which contains another javascript function inside (closure) function function1() { $("button").bind("click", function () { function2(); }); function function2() { // code }; }; My question: When i call func
I'm trying to extend jquery selector (for the first time) and I'm trying to get more readable and maintainable code for my friends which work with me on this project. I'm trying to find all elements that have attribute deletable=true So when I look f
I have a variable which contains "j_id0:j_id11:i:f:pb:d:MyFieldName.input" (without the quotes). Now I would like to capture "MyFieldName". I had this: var test = "j_id0:j_id11:i:f:pb:d:MyFieldName.input"; var testRE = test.m
i am using google maps with my project as you can see here ( Demo ) in left top you can see man icon and zoom i want to remove man icon and set zoom left-top what should i do? i am using this library js library and you can see other library in (view)
just trying to implement collisions in my game. Im having a problem with how the tiles are tested for collisions and therefore the collisions aren't working. I have an array that looks like this: var coll_array = [ [[tile_index],[x],[y]] ] The tile i
Possible Duplicate: Array value count javascript I have an array which contains several duplicates, what I'm trying to achieve is to count how many duplicates each unique string has in this one array. The array looks something like this array = ['aa'
I have created a slider using CSS3 to display my testimonials.. Now I need to add some animation to this slider using Jquery. But I dont have any idea how to use Jquery with this slider.. and what are the suitable plugin for this. So anybody can tell
The code looks fine to me which is why I'm confused with the G_SResult variable losing scope. It's declared globally above the ready function but that isn't visible in the screenshot. In the screenshot you will see 4 highlighted alert expressions. Th
Hi all Why this piece of javascript code doesn't work on firefox var nfiles = 1; function Expand(){ nfiles++ var adh = '<input type="file" name="File '+nfiles+'">'; files.insertAdjacentHTML('BeforeEnd',adh); return false; }; It l
I'm getting an error on my website. When I try to close a frame of Fancybox plugin, it doens't close all. The screen is still locked. On console debugging I can see this error Object doesn't support property or method 'swing', in this line: this.pos=
I have this jQuery tooltip that works fine on initial page loads. The problem is when I AJAX append another [tooltipwrapper] block the tooltip doesn't work on it. Please see codes below, any suggestion would be greatly appreciated! $(function() { $('
I am new to Raphael, as well as asp.net. I am trying to test a simple raphael example with asp.net, but I keep geting the following error: Microsoft JScript runtime error: Object expected this error occurs in this line: var paper = Raphael("diii"
I have the following function to fetch the current position of a user (if allowed). <script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?sensor=true"></script> <script type="text/javascript&quo
I'm trying to figure out a way to read GET method information from a form with javascript. Our IT department has our servers on lockdown, and as the web team we can only use javascript to accomplish our tasks. I'd use PHP if I could, but I can't. Wha
I'm trying to write a "suggestion search box" and I cannot find a solution that allows to highlight a substring with javascript keeping the original case. For example if I search for "ca" I search server side in a case insensitive mode
Can someone guide me on date range in JavaScript? I want to calculate one week and month date range from today's date; I.e, if today is "18th july 2010", the range for the week should be "11/07/2010 - 8/07/2010" and for the month it sh
I have a form which gets introduced via XHR and I need to be able to bind an event on it, for submit. I've downloaded the jquery.form.js plugin. What's the best way to perform a late binding so that I can do something such as: $(document).ready(funct