Loop through list of field inputs and submit form in jquery
I want to submit a form repeatedly with different input values. I wrote a piece of code ages ago which I've tried to adapt for my current needs but I can't get it to work, it doesn't loop. My code so far looks like this: function mycode() { $("[name='searchtext']").val(inputArray[n]); $("button").click(); output[n] =$("span#outcome").text(); output[n] = ("|"+n+"|").concat(output[n]); n+=1; } var inputArray = ['A','B','C','D','E','F']; var output = []; var n = 0; $(document).ready(function() { setInterval(mycode(),
My script seems to be broken jQuery/JavaScript
Hi guys, First post here. So here is my problem, This was working perfectly, but after about some time it stopped working, I don't know what I changed and it is giving me the biggest headache I have ever had. What is supposed to happen is the JavaScript is supposed to call data and write it into its corresponding field. It has a timer of which it displays the different strings on the web portal. I call jQuery CDM from Microsofts source in the beginning of my site in the header: <script src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.12.1.min.js"></script>
jquery mobile reinitialize page as the beginning
hi,i have a problem in jq mobile app I have a page with form,input text,label,ecc ecc...when i return in this page through the back button,I would like to re-initialize the page as it is written in my index. how can I do?
image(profile picture) upload with html form by jquery and ajax only
i have html form and at the top of the html form i have profile picture feature so that user can upload his picture while filling the form what i want is, if user upload his profile picture i want to temporary show that image inside profile picture div and dont save it into folder or database until user will fill the form completely and save if user will save the rest of the form with profile picture than this image should saved in upload folder and its path must be saved in databse.but if user cancel
how to us blur() function with input mask
I am using this input mask plugin, http://digitalbush.com/wp-content/uploads/2013/01/jquery.maskedinput-1.3.1.min_.js. What I am trying to do is to use the blur(). Currently right now, I have blur working, but only to a certain extent. What I mean is that if the text field is empty, the blur() works. But if the text field contains data, the blur() is still kicking in and displaying the value that I have set for blur into the textfield rather than keeping what is inputting in the field. I am unsure
jQuery Hide attribute value past certain length
I have long base:64 strings that I am putting as the values of hidden elements. How can I limit how many are shown in the debug inspector? They are really annoying and take up a lot of space. E.g. Instead of this: <input name="[0].CoverImagePath" type="hidden" value="/9j/4AAQSkZJRgABAQEAYABgAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCADZANkDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R">
Comparing a Text Element and a String
I'm struggling to understand where I'm going wrong. I'm using a draggable/droppable element and I'm extracting the <p> tag value using: var rightNumber = ui.draggable.text(); and assigning it to the variable rightNumber. The value of the <p> tag is set to '4' (but can be changed dynamically). I want to use an if/else statement to compare the value of rightNumber with the value extracted from the <p> tag but it always defaults to false, irrespective of whether rightNumber actually equals "4". Running
Animation pictures with the removal, when going beyond the browser window
Hello. Can you please tell how to do the animation then car runs on background. Background has widht: 100% of browser window. When car come to the end of browser window (or background) it must disappear but only after crossing browser window (or background) JS Bin There is a background image, there are other pictures that move on its background. I did the animation itself with animate(), but I can not figure out how to: 1) remove the image when you crossing out of the browser (my window expands).
copy change event to keyup
Hi I'm fairly new to jquery, I'm in a situation where I need to copy the onchange event handler to the onkeyup event handler for a select statement. Can anyone offer a way to do this using jquery? <html> <head> <title>onchange test case</title> <script src=https://ajax.googleapis.com/ajax/libs/jquery/1.7.0/jquery.min.js></script> </head> <body> <form> <select id="testonchange"> <option>option1</option> <option>option2</option> <option>option3</option> </select> <button>bla</button> </form> <script>
issue re-opening a div tag after closing
Hello, Problem: reopening a a div tag via button. initial page load, the div tag is hidden by design, this works. User needs to change location information so he/she clicks the button(buttonONE) to open the div tag to make changes, this works. after the changes are made the user clicks the button(buttonTWO) to save the information and the div tag is closed at the same time, this also works. If a user decides to reopen the div tag using buttonONE (original button to open the div tag) the div tag remains
Question trying to use datepicker on a bootstrap dynatable field
Hello. I have had to change my pages recent to Bootstrap format. One of my pages contained a table that contained a date field that is available for update. In the past I was able to tie a class to the <input> field and then call datepicker using the class. Here is the code that I currently have defining the table and the datepicker function call: <div class="panel-body"> <div class="flextable" id="updateResults" > <table id="checkedTable"
Setting Header Bar Theme Across All Pages.
Hi, is there a way I can set the theme of the header across all pages. Currently I am using data-theme on the header itself. Thanks.
Newbie troubleshooting question
I am pretty new to jQuery but very excited to learn. What I am trying to accomplish is a series of dropdown menus. The first dropdown menu selection will determine which menu populates next and so on. After the fourth dropdown selection, I would like it to generate a single word. Basically it is a sizing calculator. The first problem I am having is that with this code (clearly something wrong) when I select "Mens", it shows the womens and vice versa. Also, I am having trouble figuring out how to
Passing Parameters with a button.
I have a button like this: <button id="btnthing<@currow>" class="btn" value="#div<@currow>,35">History</button> Ignore <@currow> I want to have the jQuery split the value into two variables. $(document).ready(function(){ $(".btn").click(function(event){ var me = $(this); Now I want to split the var "me" into two variables so I can use one to set the load div and the other to set the rescue_uid1 parameter in the URL. event.preventDefault(); $(me.val()).load("rescue.taf?_function=Listactivitiesonly&rescue_uid1=35");
Where do I find advanced jQuery tutorials?
Hey there, I'm Nick! I just wanted to ask where I can find more tutorials about jQuery (advanced level). Thanks for hearing me.
How to use jquery to detect the customer is using laptop or mobile to watch it.
How to use jquery to detect the customer is using laptop or mobile to watch it. the code in mobile shows wrong. it shows in laptop: I'm using php to hide this table right now, I want to use jquery to detect is using mobile, so I can change the talbe as buy price save in one row.
Screen/Form Wizard
Hi there. Sorry if Im posting on wrong session, but I didnt know where to post it. I would like to know if its possible to do something like this... 1 - You press a button and open a wizard to edit the form 2 - Click on one element (ex.: label) and change its properties. 3 - Still with wizard opened, you can click and drag the element inside its content (drag and drop) 4 - Click Apply ("Aplicar" in image), it generates a custom CSS for that element or what was customized in page. Another example
Whу does
Hello! If I browse this [url=http://www.antilopagold.su/kartiny]site[/url] from my desktop Chrome and press "Добавить в корзину"(Add to cart button) for some product, the cart is filling because the comand jQuery.ajax({ type: "POST", cache: false, dataType: "json", url: window.vmSiteurl + "index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json"+vmLang, data: dat }).done(... works fine. This command is placed at row 81 of /components/com_virtuemart/assets/js/vmprices.js
JQuery UI Dialog invoke external URL
down votefavorite I need to open an external URL(an .aspx) using JQuery UI Dialog, but the thing is I need to pass parameters to the url and then retrieve those parameters from the .aspx I used to use window.showmodaldialog(url,parameters) and then from the .aspx window.dialogArguments... But because Chrome deprecates "showmodaldialog" sentence, I need to replace it using JQuery UI Dialog. My code now: (Im not sure if it's ok and can't figured out how to retrieve parameters from the .aspx) HTML:
How to get the selected rows in all the pages of flexi grid.
I need to get the all selected rows data from flexi gird. Currently i'm using below logic to get the data. var data = ''; $("#gst tr td .selected").each(function(){ if (this.checked) { data+= ',' + this.value; } }); But it's only returning current page selected rows. Any help\suggestion highly appreciated. Thanks, Balu
How to get a value from listview
Hi there, I'm trying to get a value of data-name when user selects an item from listview by clicking. Nothing happens when I click on an item in listview. Here is my https://jsfiddle.net/93zht15z/ What am I doing wrong? Joe
Change time format 08:00 pm to 20:00
Hi, On my website, time will be displayed in english format am/pm. I want to use European standard 24:00h. my jquery-ui-timepicker-addon is attached, I am not sure which code line I need to reconfigure, because of 1000 lines of code. P.S. I am new on this forum. Sorry if I posted this in a wrong forum room. Thanks
How to append .button() styled checkbox input to parent form
Hello, Like the subject says... So I was "successful" in re-styling a checkbox using UI .button(). However, I suspect that this has had a peculiar side effect; if I understand correctly, the original control(s) are destroyed, and recreated. Fine, fair enough. But they are re-created outside the original form, so therefore are not included in the postback. So, ... appendTo to the rescue? Only, I try this, but it doesn't seem to work? I could be using it wrong. $(function() { var wizDiv = $("#wizardDiv");
How to make a infinite loop on an animation ?
Hi, I'm new on Jquery, I have a few bases on Javascript, but Jquery is another thing for me :) I'd like to ask some specialists about my problem, because after researches on many websites, I can't find issue to my problem. Let me explain to you : I put a script on my website (animo.js) that allow me to put some visual effects on chosen elements. The visual effect works correctly, but only one time, and I'd like to make a loop on it. You can see the element I want to make a visual effect on here :
I have a project. I want to disable the date for the cars already booked. please can you help me?
<link href="../form/jquery-ui.css" rel="stylesheet"> <script src="../form/jquery-2.2.2.js"></script> <script src="../form/jquery-ui.js"></script> <script type="text/javascript" language="javascript"> $(function() { var excludedDates = ["24-05-2014" , "30-06-2014" , "31-05-2014" ]; $.datepicker.setDefaults({defaultDate: '+1w', changeMonth: false,dateFormat: "dd-mm-yy", numberOfMonths: 1, minDate: 0, beforeShowDay: function(date) { date = $.datepicker.formatDate('dd-mm-yy',
VS2013/15 ASP.NET VMC jQuery UI migration path
Hello, I am trying to install, which involves some upgrading, from jQuery UI. I am aiming at installing the UI widgets, for button, checkbox, and other support, as painlessly as possible. I am trying to get there by installing jQuery UI Widgets: All, which seems like as sensible a bundle as any of them. Here is my NuGet output: Attempting to resolve dependency 'jQuery.UI.Widgets.Accordion (= 1.8.9)'. Attempting to resolve dependency 'jQuery.UI.Core (= 1.8.9)'. Attempting to resolve dependency 'jQuery
Elements Won't stay Selected
I have a 5 by 5 table (5 rows by 5 columns). Each row has either a class of red or blue and when the page finishes loading, all the rows with blue class have blue backgrounds and all the ones with a class of red have red backgrounds. When I hover over a row it should turn gray. Then if any row is clicked, its backgound should be set to white. I was able to get most of the fuctionalities that I needed. I was able to turn the background of any row white when clicked but once I move the mouse out
trying to make online calcucator
I'm trying to make online calcucator for my web site https://jsfiddle.net/schel4ok/p9d1p00t/ But it doesn't calculate the value. It seems that I don't understand clearly how to call function "calculation". Please correct me.
save position after drag item plz help me!!!!
well...... i'v built a code which allows people to drag items and create a new page... this is the html code: <section class="has-border"> <div style="width: 100%; height: 1000px; background-color: lightyellow;" > <span style="font-size: <%=s1 %>; color: <%=color1 %>" id="makeitmove"><%=request.getParameter("p1")%></span> <span style="font-size: <%=s2 %>; color: <%=color2 %>" id="makeitmove3"><%=request.getParameter("p2")%></span> <span style="font-size: <%=s3 %>; color: <%=color3 %>" id="makeitmove4"><%=request.getParameter("p3")%></span>
Different Results even Code is Same
Hello I am trying to copy selected values from One dropdown to another. I have total sixdropdown , three dropdown for Country,State and City and another three for Country ,State and City . i want to Copy Country to Country , State to Stateand City to City . If i execute code over console it gives fine.but if write same code to file and try to execute using function It gives only country what to do ?
Shopping Cart ... Then what?
I believe I can build a jQuery shopping cart using the samples and information on this site, but then what? How do I pass the items to a purchasing system (in this case it would be asecurecart.net)? Is it as simple as adding a form linking to the account for asecurecart with a button inside (or outside) of the cart.?
Change the option font color in datepicker
Hi, Is it possible to change the font color of the list in Month and Date option list in datepicker? Thanks.
Jquery autocomplete combobox scroll issue.
Hello everyone, I am using jquery auto complete combo box in my code with scroll bar.Issue I am facing is as below. Once page is loaded then you click on show all button.it will show all the results.Now scroll till end of result. then close the list without selecting any option i.e click anywhere outside result list. Now once again when I try to open the list by clicking show all button scroll position is set to end of list.I want it to be at top of list. Code i am using is as below. <!doctype html>
Bar at bottom and top of screen?
Hello, I'm currently working on a little Webapp as a school assignment. I copied the code here and edited it a little, however there's a small bar at the top and bottom of the window. Also, if I chance the background color it will only show in those two bars. Does anyone perhaps know what the issue might be? Thanks in advance <DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Naam</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"
How to use jQuery to display a specific tab on another HTML page
hello to everyone, I have an HTML "About" page with three sections - Cirricullum Vitae, Publications, and Students. Navigation tabs using jQuery functions show or hide ONLY ONE of these sections at a time, with a nice fade out/fade in transition. Cirriculum Vitae shows by default. I need to solve this problem - have an HTML link from A DIFFERENT PAGE go to the "About" page and call the "Publications" section to display first. Here is the jQuery code for the tabs. Can anybody steer me in the right
Selecting Deselecting Divs
I have several divs on my page and when I click a div I would like its background to change to yellow. Then when I click on another div, I would like its background to change to yellow and would like the background of the div that was previously clicked to change back to its original color. I thought I can solve the problem by giving the clicked div a class called highlight. Then style the highlight class with a backround color that I need. Finally when another div is clicked, remove the highlight
test questionm
test
if else statement in jquery
I have found out I could not use an if statement in Jquery (unless done with plain js instead). Do you think creating two if statements are the best practice to achieve this? $(document).ready(function() { $('#select_preferences').multiselect({ buttonText: function(options, select) { return 'Look for users that:'; }, buttonTitle: function(options, select) { var labels = []; options.each(function() {
how to display the content of an HTML table row in a jQuery dialog?
Have the following HTML code: <body> <table> <tr> <th>Marque</th> <th>Model</th> <th>Name</th> </tr> <tr> <td>HP</td> <td>G480</td> <td>PC-HP-G480</td> </tr> <tr> <td>DELL</td> <td>Latitude</td> <td>PC-Dell-Latitude</td> </tr> </table> </body> How to display in a jQuery dialog box the content of an entire row by simply clicking on this row? Example: When you click on the second row, a dialog box opens and displays: Marque: HP Model: G-480 Name: PC-HP-480 Can u send please the jquery code and the
MouseOver event with datepicker
Hello! I have to get MouseOver event for each day in datepicker, but I can't find if it is possible. Could someone help me to resolve this question? Thanks.
Next Page