inserting into text elements
hello guys and ladies, I am completly new to the topic, learning about dom right now and I think I don´t get somethink... Suppose I have this form: <body> <form action="index.php" method="POST"> <input type="text" name="string"> </form> </body> and I have a function which does something and in the end of the function I just want to insert a value which is counted by the function into the text... I am trying something like: $('#string').val($vysledny_text); $("#string").append($vysledny_text);
Coil and uncoil svg image
I want to coil up a svg graphic and uncoil it, any suggestions or methods ?
How can I change the class with addClass() of an html() method?
I have a guessing game and I am adding text to a <div id="message"></div> above an input field. I want to dynamically add a class using a function to the html text that I have already added to the div#message. How can I achieve this with a function? var numberGuesses = 3; var randomNumber = Math.floor(Math.random() * 10) + 1; var numberGuesses = 3; var randomNumber = Math.floor(Math.random() * 10) + 1; function isValid() { var number = document.getElementById("guess").value; if(number
JavaScript for Web Developers: onClick and onMouseOver
Is this valid code: <li onClick="$('#header_global_search_content').show();" onMouseOut="$('#header_global_search_content').hide();"></li> ------------------------------------------------------------------------------------------------------------------------------------------------------- onClick and onMouseOut ?
Newbie: Event hover on object
Hi, as a newbie to jQuery (former using mootools) I have a question: <script language="JavaScript" type="text/javascript"> $(document).ready(function() { var myNav=$('main-navigation'); console.log(myNav); myNav.hover(function() { console.log('hover'); $('navi_overlay').removeClass('hidden'); $( 'navi_overlay' ).addClass('active'); }); }); </script> The console says: Object { length: 0, prevObject: Object, context: HTMLDocument → home.html, selector: "main-navigation"
Incorrect codes
Good day friends, I want to start but I'm having trouble with jQuery and jQuery code such as this code does not work on me what error you help me? thank you ---------------------------CODES-------------------------------------- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>Untitled Document</title>
Having an issue with http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
The error message I get when I try to load the page is: The website has been up and running for a while now without much issue, can some help point me in the right direction as to what I can do to fix this issue? I am only just starting out on jQuery and still finding my feet. If someone can help I would be very grateful. Thank you Tom
I Need Help
Good day friends codes that php based game I want to move the character but I do not have detailed information on this subject said that in this regard a few people can be solved with jQuery problem you help me right now is walking system Thank you in advance goes flat in the place where the mouse is clicked on the game below you can find a picture
How to use drag and drop to create a voting like feature?
Hello I've been trying to program drag and drop functionality into a voting system. The user should have facility to select desired but predefined options to actually drag and drop into the ballet box, hence voting to that post. If you have any idea regarding it, please post it. Thanks!
How to start, need calculator with sliders that refreshes result in real time without submit button
The following is a good example of what I want to create. There are sliders where you select numeric values (speed and temperature in this example). Then the result of the calculation is displayed (218 miles in this example). The most important thing is, I don't want a submit button. The result should update automatically if the slider changes. I know HTML and CSS. I don't know PHP, Javascript and have never used jQquery. How do I start? Ideally I would like to download something that I can play
Trying to change an Appointment Forms slideUp slideDown position when page loads
Trying to get an Appointment Form's slideUp slideDown position reversed, on page load When the page loads, the form is up, I want it to be in the down position. This is the code /*-----------------------------------------------------------------*/ /* Appointment Form /*-----------------------------------------------------------------*/ $('.make-appoint').click(function () { var $this = $(this); var appointment_form = $this.parents('.appointment').find('.appointment-form');
This code isn't working as expected. Subtags mentioned under asideDive and lowerDiv are not displaying in parent div i.e. div class = "asideDiv" & div class = "lowerDiv".
<!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>all demo</title> <script src= "https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js" ></script> <script type= "text/javascript"> $(document).ready(function(){ $('.container').css({ width:"1050px" , border:"2px solid black" , margin:"0px auto" }); $('.headerDiv , .lowerDiv , .asideDiv ').css({ border:"2px solid red" }); $(" aside , header , section , #leftDiv
autosugegst : How to Avail id of the name selected
Dear Sir refer http://cancerdirectory.org My Auto suggest is working What i want is 1. User selects a name from the list displayed 2. this selected name will be displayed in text box he/she is typing <<< everything working fine till here >>> 3. I want user to click Submit so as to display the details of the name selected by him 4. for this i feel i should avail of record clicked I donot want to display the details by opeing new link ... when clicked on the list of a name in Autosuggest name
Vertical Slider
Hello, I am looking for, as the discription it say's a vertical Slider-Show. Left to the textfield, there should be Links or Buttons to the speciffic "page" in the Slider Show. Till now, I didn't find a vertical Slide Show. Exist there something?
looking for responsive jquery image gallery script
I have been searching for a few months now and still not able to find what I am after. I have the following code running on my site but now this is causing problems for some mobiles... http://highslide.com/ I am looking for a image gallery where a load of images show on the page and when one is clicked you can then scroll through the rest. I am also looking to place text under the image, one or two lines. Can anyone suggest ones that they have seen/used that I can try out to see if they are suitable.
problem with imput
Hello im newbie, i have this problem, im my site i have 2 imput for select country and language, i want when the first is opened the second go down like the height of open select, because now if i open the first select he go on the second. <form id="selections"> <select id=""class="country-se cs-skin-elastic" onchange="setLanguage()" name="countrySelect"> <option value="1">bulgary</option> <option value="2" >brazil</option> <option value="3">france</option> <option value="4">germany</option> </select>
Donation Form Integration
Hi guys, i'm looking for help to integrate this: <html> <head> <title>Global Iris RealAuth PHP redirect sample code</title> <? /* Pay and Shop Limited (www.realexpayments.com) - License Agreement. © Copyright and zero Warranty Notice. Merchants and their internet, call centre, and wireless application developers (either in-house or externally appointed partners and commercial organisations) may access Global Iris technical references, application programming interfaces (APIs) and other sample code
input box to filter the full list
i have a json list i want load just 1 element and give to the user a input box so when the user clicks show full json list. i tried but i got stuck i am not so familiar with jquery, if you guys can help, i will appreciate. here is the code: http://jsfiddle.net/8uac7/2474/ thank you guys.
Noob's questions about using jQuery in php
Let me start by saying I'm brand new to java / jQuery world so please bear with me if I say something really stupid. In fact this is the very first thing I've ever written so it might be horrible @ best. This will be a bit lengthy but I want to try to be as clear as I can so I don't waste anyone's time. What I'm doing: using jQuery to manipulate class elements within my Joomla! template that don't seem to conform well to just a .css solution. Like... figuring out proper margin-top for the .nav
JQuery and eXist Database
Will JQuery retrieve XML data from the eXist database? I've tried using the XMLHTTPRequest Javascript object with no success whatsoever. I hope someone can assist me.
Uncaught TypeError: Cannot read property 'element' of undefined
Hello Guys: I'm working with ASP .Net and JQuery, i'm developing a MsgBox Dialog control (ascx) the control work's successfuly but i can't display it on Chrome, Opera, Safari and Firefox this browsers send the next error: Uncaught TypeError: Cannot read property 'element' of undefined.... The MsgBox dialog only appear in IE, i don't know what's happen, the code that i wrote to display this MsgBox dialog is <script> Sys.WebForms.PageRequestManager.getInstance().add_endRequest(EndRequest); function
understanding modernizer feature detection script
Hey guys , have a look at the below script : Mod = {}; attr = {}; Mod['input'] = (function(prop){ for (var i = 0; i < prop.length; i++) { attr[prop[i]] = !!(prop[i] in inputElem); } return attr;. })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' ')) console.log(Mod['input']); its a feature detection script from modinizer , i just abstracted that code and modified it a bit
jQuery Button - "Callbutton"
Hello, I am using that jQuery: http://demos.jquerymobile.com/1.2.1/docs/api/themes.html How can I create a Button, with which the user can call after clicking it? Example: http://m.fbn-dd.de/ The Picture with the telefon and the Description "Anruf hier"
text editors for ios?
Hi, I'm looking for the ability to do some light dev on my ipad. Looks like Sublime Text does not make an iOS app. Looks like Textastic is a somewhat popular text editor app for iOS with good reviews. Are there any other similar apps that I should consider? What about online (cloud) text editors?
jQuery Slider
Hello, I am working at a mobile Homepage. I attached the total Code. I have tried the Excolo Slider (http://excolo.github.io/Excolo-Slider/) The pictures are shown, but the function is written below the pictures and not working. $(function () { $("#slider").excoloSlider(); }); Code: <!DOCTYPE html> <html lang="de"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta name="xxx" content="index, follow"> <meta name="Description" content="xxx">
Inserting a new value in an HTML structure
For example I have an HTML file like this <td id="td_id"> <h1 class="h1_class"> <a href="testme.com">Title</a>: Sub-title </h1> </td> The output of this would be "Title: Sub-title" But what I need is to insert a new value using jQuery so that the value would be "Title: New Value Sub-title" I can't insert a value in between the comma and the word sub-title. I tried using the td's ID and moving down to it's child but I can't seem to add a value.
When menu is responsive stat, sub menu is not collapsing automatically when other is clicked
*#cssmenu, *#cssmenu ul, *#cssmenu ul li, *#cssmenu ul li a, *#cssmenu *#menu-button { margin: 0; padding: 0; border: 0; list-style: none; line-height: 1; display: block; } *#cssmenu *#menu-button { display: none; } *#cssmenu { line-height: 1; background: rgb(0,0,0); width: auto; } *#menu-line { top: 0; left: 0; height: 3.0px; background: rgb(0,0,0); } *#cssmenu > ul > li { float: left; } *#cssmenu.align-center > ul { font-size: 0; text-align: center; } *#cssmenu.align-center > ul > li { float: none;
How to How to dynamically update a counter that show numbers of received messages from a data base?
Hi, I use PHP and I get the numbers of messages received by an user query a MySQL database and show it in a web page, I would like to update and refresh automatically the numbers of received messages without that the user has to use the refresh button. How can I do it?, sorry, I am not used to use jquery. Any example would be appreciated. Thanks a lot Francisco
Sort a list of links within each table cell
My website's CMS creates a table as a calendar, but does not sort the events in order by time (or give me the option to manually sort them); it just adds them one after another. I'd like to add an inline script that reorders the events based on the time that is included within the link text. Some dates do not have any events, however, these cells still contain a link because each date's number is a link. Some only have one event, so those cells would contain two links, but do not need to be reordered.
My first jQuery line doesn't work.
Hi-- I just read the jQuery documentation today, and my very first jQuery line doesn't work. The JavaScript works, but my new jQuery line doesn't. Can you please help me understand why? Here's my code that works: Starting with an empty table... <table id="PUploads"> <caption>Pending Partial Uploads<br /> Choose any row for further action. </caption> <tr> <th style="width:10px">#</th> <th style="width:150px">File Path<br />on S3</th>
JQuery Tabs not populating / assigning
I'm new to jquery but I've completed the basic tutorials. Most of the examples I've seen use pure html and javascript but I'm trying to use PHP. I have the basic TAB object setup and of course it works with hard-coded text - but fails when trying to populate it with a PHP variable. $('#tab-doc').html('Test'); // Works fine $('#tab-doc').html(' ?> print $html; <?php '); // This fails I've also tried: print "$('#-tab-doc').html('test');"; // Works fine
on button click open overlay and change button text
Hello, my fiddle: https://jsfiddle.net/seb4222/1a0240mo/19/ When i click on "Menu" and the overlay will be opened. But what doesnt work: I want that the "menu" disappears and the "close menu" appears. Thanks alot :)
$_POST data on same page and output
Hello when a button is clicked I want to post data to the same page and show something. Only there is nothing showing up. My code: $(document).ready(function(){ $("#orderbycommonnameup").click(function(e){ e.preventDefault(); var url = document.location.href; $.post(url,{orderby: "comnasc"},function(data){ window.location.reload(); }); }) }); <a href="#" id="orderbycommonnameup"><img src="images/icon-arrow-up.png"></a> and on the same page as
Uncaught TypeError
Hello Guys: I'm working with ASP .Net and JQuery, i'm developing a MsgBox Dialog control (ascx) the control work's successfuly but i can't display it on Chrome, Opera, Safari and Firefox this browsers send the next error: Uncaught TypeError: Cannot read property 'element' of undefined.... The MsgBox dialog only appear in IE, i don't know what's happen, the code that i wrote to display this MsgBox dialog is
How do I update the html inside a variable
Hello, I have the following html inside a variable: <tbody><tr class="contract"><td style="width: 25%"></td><td style="width: 25%"></td><td style="width: 25%"></td><td style="width: 25%"></td></tr><tr><td colspan="1"><input type="hidden" id="radio42918" visiblecondition="" mandatorycondition="" class="radio-values"><span class="prompt42918"><label class="prompt-label prompt42918" colspan="1" itemid="42918">Radio<label class="mandatory-text-sign hide-item">*</label></label></span></td><td colspan="1"><input
scripts.js function doesn't run when button is clicked
Hello, I have a button used for logging in, and when a user clicks this a box should be overlayed allowing them to login, I know it does work as the site I'm using is a template, however in practice it doesn't work. HTML: <div class="header-login"> <a href="#" class=""><i class="fa fa-power-off"></i> Login</a> <div> <form action="#"> <input type="text" class="form-control" placeholder="Username"> <input type="password" class="form-control"
newbie 3 part form processing question with include
Hi all, I am a query newbie attempting to incorporate J query mobile into a pre-existing multipage website. In this case I have this previously working Page setup: It may sound a bit odd but it is working fine negotiating with and external website mypage.php in this header I have various https://code.jquery.com/xxxx links (only here) In the body of this page I have A PHP include to = myform.php myform.php is and rather complex form that goes in three parts to the external website - (this form came
meta http-equiv="refresh" not working with JQM
hi all, Currently I am using JQM on a multi page site submit button on page 1 that goes to page 2 has : rel="external" and works well however on page 2 I have database processing at the top - then this header that goes to page 3 <meta http-equiv="refresh" content="0; url=page3.php"> Without JQM page 1 goes to page 2 then auto goes to page 3 WITH JQM - it STOPS on page 2 and doesn't see the refresh I guess.... Q: Is there a way to get this to process to get to page 3?
How to add content in a div using jquery
Hello I am experimenting an issue using jquery to create come content to be displayed inside a div. I am using the plugin Lightbox for photogallery. Lightbox display a large image , once clicked on a thumb, that is not part of the original html dom where the thumb is placed, so is getting a bit tricky for me that i am learning jquery. I have a $title variable to be shown inside a div that contains an image. the title is related to any image I have in the gfallery. this is my php page that i created
Newbie: best method to send data and return results without leaving site?
I haven't written the code yet (actually looking for examples/samples for this as well), but I have hypothetical scenario where a user is on a checkout page and I want the user to enter in their shipping/handling info (or it's entered automatically) and they click a "send this info" button. They never leave the page, and it just returns saying successful. But after they click the send button it actually goes and posts the info to a different website/db and saves this info. I'm thinking a RESTFUL
Next Page