Validating a form
Hi I'm trying to learn jQuery and got this validating code. It was working, but I did something I can't remember, and it stops working. I have no way to go back and get the tutorial code again. Here is the code: <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> <script type="text/javascript" src="http://ajax.microsoft.com/ajax/jquery.validate/1.7/jquery.validate.js"></script> <script type="text/javascript"> $(document).ready(function(){
funcion jQuery (en plantilla boostrap)
La siguiente función jQuery dentro de la plantilla bootstrap-responsive esconde la classe menu, pero al cabo de unos instantes, ésta vuelve a aparecer. $(document).ready(function(){ $(".menu").click(function(){ $(".menu").addClass("hidden"); }) }); Alguien conoce el problema. Saludos.
Using and Changing SmartWizard
Hi all Not sure if I am in the right jQuery forum :) I'm new to jQuery and everything. I would like to create a page on a schools website as an Online Application for new students. I found http://mstratman.github.io/jQuery-Smart-Wizard/ but I do not know how to create more steps for personal info and stuff and how to submit it at the end to an email address. Can anyone please help me or show me to a tutorial or something better where I can just add steps and add an email address. I tried Formstack,
How to sum the elements of the same class of a group of tables
How to sum the elements of the same class of a group of tables? Are two DIVs with TABLEs inside and takes the sum of each of the DIVs ... I need to jump to the next sum of the next DIV! ---------------------------- Como somar os elementos da mesma classe de um grupo de tabelas? São duas DIVs com as tabelas dentro e preciso da soma de cada uma das DIVs...eu preciso pular pra próxima soma da próxima div ! ---------------------------- Example: JSFiddle HTML: <table> <tr> <td
Looking for assistance to modify existing code on web site
I have a small business with web page that the original author cannot support due to health. I see that JQuery has been used to generate come code and approach this forum to seek either a proposal to assist or recommendations. Part of the portal allows access to online project resources with user permissions Problem 1 is a function that allows zipping of sub folders to user browser The web page is designed to allow user to update and this leads to Problem 2 we are getting error message when attempting
make search with multiple textboxes in DataGrid
Hi, i have 2 textboxes for filtering gridview.First one is name second one is surname. I wannto make grid search dynamically with 2 textboxes.It should be like that, first i wrote a word in name textbox then it filter the gridview.Then i wrote a word in surname textbox it should filter the textboxname results. Thanks..
Need a jquery plugin
Hi, I need a beautiful free Jquery News ticker plugin like this: http://powerup.ir/projects/smarticker/ If any one can send me the link for this kind kind of plugin it will solve my problem. thanks
How to do static header from page to page transition?
Bare with me as I might word this wrong, but I have question about a website that I love but I'm trying to figure out how they are doing a specific page transition effect. Here is the website: http://hellonicolas.com/ What I'm wondering is when you go from page to page the header (with the logo and navigation) stays static and there is never any flash of unstyled content... I want to do this similar effect for my website but I dont know where to start... I want my header to stay static from page
Getting rowindex of gridview and updating another gridview with values retrieved
Hello, I'm new to JQuery and as such I've been having some problems with an operation I need to do. I have 2 gridviews (Gridview1 and grvFaturas as shown on code) and I catch the user logging to Windows which I will need as well. grvFaturas has an objectdatasource and the last element is a checkbox the others being Boundfields. That checkbox is mandatory and its source code is from here : http://tutorialzine.com/2011/03/better-check-boxes-jquery-css/ What I need is when I click on the checkbox on
jQuery Common UI Component
Status: New To jQuery Technologies used in this issue: · ASP.NET using the 3.5 .NET Framework · C# · jQuery JavaScript Library v1.10.2 · jQuery UI - v1.10.4 · All css and image files associated with the smoothness jQuery UI theme My task: I’m working on creating a “common” jQuery dll component that can easily be referenced by any web project where one wishes to utilize the functionality contained within. The reason I’m doing this is so I can manage all the
Having trouble understand jquery functions
Hey guys, In order to further my understanding of Jquery I was trying to develop a chrome extension using the script below, and I was wondering where the script searched the page. Thanks, Jake Script/Info: https://github.com/cowboy/jquery-replacetext //Script: /*! * jQuery replaceText - v1.1 - 11/21/2009 * http://benalman.com/projects/jquery-replacetext-plugin/ * * Copyright (c) 2009 "Cowboy" Ben Alman * Dual licensed under the MIT and GPL licenses. * http://benalman.com/about/license/
changing inserted jpg without reloading page?
I have a fixed background photo (css) I only need to add three buttons on left side at a specific locations that will change a picture within a frame on the right side. 3 button, one of 3 jpg displayed. NO reloading of page. Any suggested scripts with demo you can suggest? It has been over 12 years since I have do website building but a little cut/paste of something similar will get my head working again. I do have a basic css webpage with some transparent links I was playing with. Thanks, Ray
Coming from mootools (jQuery class question)
Hi, I usually use mootools but due to the popularity of jQuery i've decided to teach myself it. I created some classes in mootools and i wanted to make the same in jQuery but i'm finding it really hard to understand and was hoping someone could help with a few basics. So in mootools i've made a slider where you pass a .wrapper and a .store, and then the class builds a slider inside the wrapper with each slide being composed of items within the store div. I can pass other options such as navigation
jQuery - get val()
Hello. I have <input name="me" type="radio" value=""> <form><input name="other" type="radio" value=""></form> I want when i click over radio input (name="me") to get his value data and put it in other (name="other") form input. So, tell me how to work?
Not sure if this is a jQuery problem or not . .
People, I have happily used the jQuery "accordion" facility for making sections expandable and collapsible and it looks just how I want on my Linux PC with Chrome: http://philiprhoades.org but on phones and tablets there is something odd going on and I don't know if it is a jQuery problem or not. On the PC, the section texts fill the available space of the screen ie all the way to the edge of the fourth picture in the table - but on phones and tablets the text wraps at about the edge of the third
keyup problem in firefox
This is for a typing test, where if you hit the backspace key you are penalized, but even if you hit backspace 10 times, it is only one penalty. It is working fine in IE, Chrome, Safari for Windows, and Opera - but not in Firefox... I tried putting setTimeout on it, but it didn't help. }).keyup(function(event) { if (event.which === 8 || event.keyCode === 8) { if ((lastLetterWhich !== 8 && event.which === 8) || (lastLetterKeycode !== 8 && event.keyCode === 8)) {
What "e" represents here?
Hi In the following code : $("body .ribbon-container li") .delegate("a", "hover", function (e) { "mouseenter" == e.type && showSecondryImages($(this), e.type), "mouseleave" == e.type && showPrimaryImages($(this), e.type) What " e " represents in this code ? Waiting for your response!!!!!!! Thanks Varun
Code not working, no idea why
Hi guys - another ridiculously novice question here. Really can't wait for jQuery to "click" in my head so I can just get on with using it. I have this piece of code: $(document).ready(function() { $('#trigger').click(function(){ $('this').removeAttr("id") .append('<input id="trigger" class="hidden" type="text" placeholder="Add another answer..." />') .animate({opacity: 1,},200, function() { $("#trigger").animate({opacity: 0.7,},1000); }); }); }); It's supposed to make it so that when a user clicks
TextBox enable and disable
Hi all I have two textboxes, textbox_1 and textbox_2 if textbox_1 value > 0 then textbox_2 should be enable otherwise textbox_2 should be disable I have written some code but it dose not work check it http://jsfiddle.net/fungus/dpacM/
shorten ajax code
hi, this is my code below, is there a way to shorten this please, i have 5 nav items (navx-1,navx-2,navx-3,navx-4,navx-5) and have an ajax call for each of them, any help will be appreciated. $("#navx-1").click(function(){ $.ajax({ type: "GET", url: "/tools.php", data: 'qwiri=' + $(this).text(), //data:'qwiri=home', success: function(msg){ $('#resultip').html(msg); }//success
Accordion panels not showing on main site when published
Everything works on the local and tested using DW but when I posted it on the external site the panels are not activated. I have send the js custom css and jquery files to the js folder and the css files to the css folder. Kinda new in this and need some advise. So sorry I am quite new to this and not sure... just got thrown to me this project. Thanks <link rel="stylesheet" href="css/jquery-ui-1.10.3.custom.css"> <script src="js/jquery-1.9.1.js"></script> <script src="js/jquery-ui.js"></script>
Drag and Drop File Manager
Hi In jsp web page I want to create two panel left side displayingh the local file structure and on right remote file structure And want functionality so that user can upload and download the files from either side,means download fle from remote and upload files from local to remote. Tools like FileZila or WINSCP. Thanks in advance.
what is wrong with this code ?
hi there, can you tell me what is wrong with this code ? <!DOCTYPE html> <html> <head> <title></title> <script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> </head> <body> <p>Setting a default value to a function parameter.</p> <p id="demo"></p> <p id="demo2"></p> <script> function myFunction(x, y) { y = y ; return x * y; } document.getElementById("demo").innerHTML = myFunction(4,4); $(document).ready(function() { $(#'demo2').innerhtml( "ready!" ); }); </script>
Triggering a window resize on click?
Hi guys - I've found a bug in a framework I'm using. Basically a certain module won't work until you've resized your window. I don't know why that is, but I can think of an obvious fix: make the window resize when the module needs to be used. I've had a go at this, and it's not working. Here's the jquery I've tried: $(".range-slider-handle").click(function) { $(window).trigger('resize'); }); That's sitting on it's own in a .js file. The html markup of the module is like this: <div class="range-slider"
scrollTop() problem in Firefox
If you run the following, you get one messagebox open in Chrome, and a LOT open in Firefox: jQuery(document).scroll(function(){ alert(jQuery(window).scrollTop()); }); I've created a demo here: http://jsfiddle.net/captainmorgan/cVsRE/1/ Open in Chrome and scroll down with the mouse wheel. I get 100. When I do the same thing in Firefox I get 114, but Firefox continues to display multiple messageboxes and the number keeps decreasing. Does anyone know why Firefox does this?
Send PHP variable to AJAX
Hi guys, I send variable to AJAX for editing some data in table, but every time when I clicked in any rows JS receive my first clicks variable <table id="link-table" cellpadding="0" cellspacing="0" border="0" class="display dt2"> <thead> <tr> <th>a</th> <th>b</th> </tr> </thead> <tbody> <?php $stmt = "SELECT a, b FROM ast.cdr ORDER BY a desc"; $result = mysql_query( $stmt, $conn ); while($row = mysql_fetch_array($result, MYSQL_ASSOC)){ $id= $row['src']; ?> <tr class="gradeX">
email validation in jquery
I have this form which checks for email validation in jquery <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title> My </title> <script src="Scripts/jquery-1.10.2.js"></script> <script src="Scripts/jquery.validate.unobtrusive.js"></script> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> <style type="text/css"> div.contactForm { width:370px; margin:0 auto; } form.contactUs label { display:block;
Re: Problem with form submittal
I am relatively new to web design and have a problem with a Form submittal. I have listed my code below. I have used Font Awesome to render the icons on the web page. I have used Parsley from http://parsleyjs.org for the form validation which works perfectly. I have used the jQuery Form Plugin from http://malsup.com/jquery/form/ to handle the form functioning. I receive the contact form email perfectly. However, I also have a dialogue box alert pop-up with the message "undefined", when I would expect
tabs, link out, how to return to the same tab you left ?
Hi, I am using three tabs in a page called page.jsp, one of the tabs has a link to another page page2.jsp, this last page has a link (goBack). the problem when click that link, only the first tab open but not the one I was in. any help is appreciated. Thanks
JS - dependent radiobutton choices, compare their value and then show image
Hey everyone, I am new here. Regarding my studies I am in a problem with JS and JQM at the moment. I'm trying to develop an interactive map of a building, showing the floors and some special rooms there. These options are represented by two "controlgroups" with JQM and three buttons each. I know want to find out which of these buttons are pressed and depending on them show an image below. Example: Button FLOOR 1 is pressed and then Button RESTROOM – now I want to load an image that shows exactly
Drag list of DIV into a 3x3 table.
Hello all. I'm very very new to JQuery and i'm having a bit of difficulty getting what my mind thinks as easy on to the screen. I know I need JQuery draggable but im unsure how to get what I want from it.. On the left, I have a 4x4 table which is empty, and on the right are a list of items, I want users to be able to drag the items into any of the table cells then remove the item from the list, but they also need to be able to take the item back out of the table and put it back into the list. They
jquery hide and unhide
hi guys i did a jquery for when i click in check box hide and unhide a div. if somebody select the checkbox appear the div (I HAVE THAT) i want when the checkbox is unselect appears another div. any ideias? jquery: $(document).ready(function(){ $('input[type="checkbox"]').click(function(){ if($(this).attr("value")=="red"){ $(".red").toggle(); } }); }); html: <label><input type="checkbox" name="colorCheckbox" value="red"> red</label> <div class="red box">You have selected <strong>red checkbox</strong>
Calculation - How do i make a easy series of calculation?
Hello, i made a calculation but i want to make the code easier because i want to extend it. http://jsfiddle.net/HSTDL/ It is a calculation to determin how much money you made after x time when you ad y money on a regular basis of a quarter year. And each quarter you get the same yield. $(document).ready(function(){ $(".divi").keyup(function(){ var val1 = +$(".betrag").val(); var val2 = +$(".quartal").val(); var val3 = +$(".nettodiv").val(); $("#result2").val((val1+val2)*(1+val3*0.712/100/4));
How update dropdown data from a form ?
Hi, I have a table in a database Table1(ID, name, status), I want when the page load, a form appear with a dropdown ,a text field, and a submit button. the dropdown got populated from server side with data (<option value="ID">name</option>) . want when the user select a name from the dropdown, the name will be copied in the text field, after changing the name and pressing the submit button, the table in the DB will be submitted, and the drop down will show new data. the server side is easy (java servlet,
mobile app using jquery for my etsy business
want to make a mobile app using jquery for my etsy business, is there some type of template or information that can help me. thanks
Stop propagation is not stopping propagation, or so it seems.
How do I tell jQuery to do this, and then if a link is clicked, do that? With the code that follows, I have a small animation that runs when the page is loaded, wherein several images fade in consecutively with a small time lapse in between. Then, there is a directive to make a css z-index change to an image when it's corresponding link is clicked. Here is what I have: $(document).ready(function(e) { $("div.box").each(function ( i) { var div = $(this); setTimeout(function
Separate in paragraphs after every "."?
Hi everyone, If I have: <p>text1.text2.text3.</p> , how can I separate them in three different paragraphs? for any name text. I tried around this $( "p:contains('.')" ).insertAfter("p") or var element = jQuery(".class p").text.split("."); but doesn't work, regards, Anna.
disable previews button in jquery
I have button that auto-fill column from the month of Jan-Dec. Now I need a code that previous month are unable to click while current and future button are able to click Demo: http://jsfiddle.net/CFv4M/116/
Valid Date routine
I have a current set of javascript that validates to see if a date selected is valid. My dates are picked from 3 different select boxes; one for month, day, and year. I'm running into an issue where if someone picks 2/31/2014, it sees it as 3/2/2014 when I really want it to just return invalid. Presumably this is happening because February only has 28 days so it's just adding a few more onto it. I was hoping someone could help me update my code to make it work correctly! Any help would be much
Display checkboxes as a dropdownlist?
Hi, I have some checkboxes that I need to display them in a drop down list. I was searching on internet but I didn't find the solution for my case. Here is the code: <div class="amenities"> <ul> <li class="junio"> <input id="amenity553a208be5c793" type="checkbox" value="5" name="filter_amenities[]"> <label for="amenity553a208be5c793">Junio</label> </li> <li class="julio"> <input id="amenity653a208be5c793" type="checkbox" value="6" name="filter_amenities[]"> <label for="amenity653a208be5c793">Julio</label>
Next Page