How to check all checkboxes that are in same array?
Hey.. I'm new to Jquery and could use some help.. The problem is next: I have a foreach loop that is going trow the array of rows in table..Now when I check one check box, the other checkboxes needs to be checked, that are in the same array. I hope that I made myself clear. Here is the table >> SERIJSKI BROJ 222222226 555555555 555555556 555555557 666666666 666666667 777777777 Here is the code >> <div class="col-md-6"> <table id="tabela_zaduzi_plombe" class="table-responsive table table-bordered
How do I use Ajax to get the selected option and save it into my database ?
While working on Ubuntu, I have a PDF file that I want to to convert into text, then I preg_match in order to extract the data I need. After this, I put my data lines into a drop-down list. How would you consider doing this ? - Reena Shetty (Private Consultant at FCC Pvt. Ltd.)
Infinite self referring loop using setTimeout() stops unintentional
Hello Community, it's me again, cannot see the wood for the trees. I want to repeat an image fade mechanism in an infinite loop. Here is the essential code snipped: function sliderLoadNext () { activeImageSliderEntry++; if ( activeImageSliderEntry == numberOfTitleImages ) { activeImageSliderEntry = 0 }; loadUpcomingSliderEntry(); setTimeout( sliderLoadNext , 3000 ); } The function sliderLoadNext () is called
api fire
Hi, How would you get an api to fire not when the page loads but when the dropdown form element (including its little downward arrow) is clicked on? My current working script is Thanks in advance <script> var blah= $('#BlahID'); var blah_api_url = 'https://xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'; jQuery.get(blah_api_url, function (data) { $(data).each(function (key, val) { console.log(key); blah($("<option>").attr('value',
DatePicker - Using minDate and maxDate
I'm fairly new to jQuery. I'm trying to use Datepicker to create two date boxes on my form and to allow the user to easily enter a date range. Here is my current code: <td class="invisible input-daterange input-group" id="datepicker" data-date-format='d-M-yy' data-date-start-date="23-Oct-17" data-date-end-date="22-Feb-18" data-date-min-date="5-Apr-16" data-date-max-date="31-Dec-17"> <input type="text" class="input-sm form-control datepick inline" style="display: inline-block; margin-left: 50px;"
some function are working well and some are not working well
Hello Friends, problem when i face is some jquery function like slideUp,slideDown,slideToggle,fadeToggle etc not doing well and some are well also text below mentioned code for reference, so plz guide us .. <head> <title>JQuery Complete Cource</title> <script src="jquery-3.2.1.slim.js"></script> <script> /*Example #1*/ /*$(document).ready(function(){ $('#but').click(function(){ alert('Button has been Clicked'); }); $('.test').click(function(){ $('.test').hide(); }); });*/ /*Example #2*/ $(document).ready(function(){
JSON encode not working with special characters
Hi , I am using pear's (http://pear.php.net/pepr/pepr-proposal-show.php?id=198) package as i have PHP 5.1.6 for JSON encode/decode purpose. But when i use special characters like &,*,[,+ ,'etc, my stuff from Handson table is not encoded properly and the text going in Mysql DB is not properly JSON encoded and is broken. So when i display this data on Webpage , it is not displayed at all as it is based on JSON format . What should i do so that the JSON format don't get break. I am using this to JSON
Javascript array to JSON
Hey guys, I have a JavaScript array, which I want to convert to JSON. The thing is that I don't know what will be in the array, cause it's a calculator, that depends on the user. I saw some commands that parse js to json, but the thing is that I want to be able to use a VARIABLE instead of a fixed input. Let's take this as an example: var obj = { "name":"John", "age":30, "city":"New York"}; var myJSON = JSON.stringify(obj); I want to be able instead of "John", or "30", or "New York", to be able to
Questions about $.ajax url "'url' is undefined"
Hello, I'm fairly new to Jquery and javascript. I'm trying to perform an asynchronous HTTP (Ajax) request using this function: function updateProgressBar(){ $.ajax({ url: '../ExportImport/LakesideImportManager/MyProgressReporting', dataType: 'json' }).done(function(response){ $("#myProgressBar").val(response.completionPercent); if(response.completionPercent == 100){ clearInterval(myInterval); } }); } When I debug it using the F12
jQuery ajax to plain JavaScript
I'm using Rails framework and I need to hit a controller URL through AJAX. The controller view should execute some JS(For testing I have given `alert();`) I have jQuery code like: jQuery.ajax({ url: url // Some URL }); The above code worked perfectly and displayed `alert()`. But, I have a requirement to convert this code to pure JS. So, I did: var xhttp = new XMLHttpRequest(); xhttp.open("GET", url, true); xhttp.setRequestHeader("X-Requested-With", "XMLHttpRequest"); xhttp.send(); The above code
Jquery .clone() Repeater Parent/Child association issues to save SP list
Will you help me with issues two issues with the following example, just create a custom list with 3 fields Title CustCity CurrCustomer and add the content editor webpart on the page. 1. cant position when I click 'Add More' from child button. 2. When I click 'Submit' the item incorrect savings of records items are not saving correctly. For example I have added 2 parents with no child should have saved 2 records but saved 4 records. Also, if I click more child, its not possible to track which child
what data type is stored in post array
Please bear with me as I'm a newbie, but none of my googling efforts have yielded a straight answer as to what data type is held in the post array. When data is submitted to the server via the php post array, is it submitted as a string? Again, seems like a simple google search would give me the answer to this, but I can't find anything. Also, I have searched through the topics on jquery before posting this question, as I would like to avoid creating duplicate questions. Many thanks for your time.
Creating template
Can i create my own template using jquery/javascript to use it with web app ??
Configurator and price calculator
There exists a configurator and price calculator: HTML: <form id="form1" method="post" action=""> <p> <select class="form-control" name="CPU" id="CPU"> <option value="0" selected>Select CPU</option> <option value="246">Intel Core i5 4440 3.1GHz (3.3GHz Turbo) Quad Core</option> <option value="268.80">Intel Core i5 4570 3.2GHz (3.6GHz Turbo) Quad Core CPU</option> <option value="282">Intel Core i5 4570S 2.9GHz (3.6GHz Turbo) Quad Core CPU</option>
a variable loads a set of values
Hello, I want to implement this logic, but I am just starting. May be someone can help? A page www.website.com/products.php shows a few products and their prices, taken from the default price array. This website can show a different sets of prices, taken from other arrays. The set used is determined by a variable, passed in URL. A consultant sends his prospective customer a link with a variable attached, e.g. www.website.com/products.php?c=85a29. The customer clicks on the link and the page loads.
Jquery: masonry and overlay (featherlight)
I coded the whole masonry layout with Isotope with help of this (https://codepen.io/Goji/pen/Kpgegd ) This worked out great, and I made several categories. I wanted the images to have an overlay when you click on it, so I used this code: https://codepen.io/HVinh/pen/xwmVJb But I don't know how to select the overlay from the css in my for loops. It's probably very easy, something with .find('.overlay') but I don't know where to place it. This is the code; I've only applied it to category 0 so far.
How to create a screenshot
I want to capture a screenshot of a graph by clicking on it from different websites,image is inside a tabbed pane.I tried using phantomjs but i am not getting how to get the element selector by clicking on website.Is there any way i can achieve it.
Attempting to "clear" or "reset" drop-down selectors
Hello all, I'm trying to set up a function on button click that will reset currently selectors with selected values back to the default or first selection of "(All)". Here is the code I'm trying that doesn't seem to work: $('div[k="W10573"]').click(function(){ $('div[k="W6038"]').val($('div[k="W6038"]')[0].defaultValue); }); with W10573 being the button and W6038 being the selector. I know the button is working as I tested it with an alert("TEST"); which worked
Need latitude and longitude from centre of a city
https://maps.googleapis.com/maps/api/geocode/json?address=chennai,india i need a lat long of each bounds from city centre ex: center to north, center to east, center to west, center to south
Issue with displaying array values with static text
Hello all, I have another question connected to my question from yesterday involving the array issue that Jake was kind enough to help out with. Here was the code from yesterday to establish the array from a multi-select: var test = $('div[k="W8748"] .elem').map(function(){ return $(this).text() }).get(); This works great for grabbing the values but what I'm trying to do now is essentially be able to display those values with some static text attached. Example below. I have two values
Need help with possible array situation
Hi all, My issue today is that I have a search box selector and I'm trying to find a way to: A) Find out if there are any values present B) If they are present, how many are there ie.. >1 C) How can I grab all of the values to display? I have a snippet from the HTML. I'm thinking I need some sort of For Loop or something along those lines, but I'm not sure how to get it started. In the case below, I can get it to display the first value "32421" by looking at the ".elem" class, and if it's the
Error in latest release does not load on windows 10
Windows fails to load due to an error on line 3887 3855 jQuery.Deferred.exceptionHook = function( error, stack ) { 3867 jQuery.readyException = function( error ) { 3887 ...catch( function( error ) { Jquery-3.2.1.js Line 3887 char 4 Error Expected Identifier code 800A03F2 Source Microsoft Jscript compilation error Same error on Google, Opera, Edge
Trouble concatenating varables to a string
Hi all, I am having an issue with concatenating some variables to a string value. It seemed to work fine in other instances so I'm not sure what I'm doing wrong here. The issue is with the "prompt1" variable and the string within it. I have these IF statements that populate the idx, idxCat and idxBrand variables which I want to then concatenate in specific spots in the prompt1 string, however it does not seem to be working and just prints +idx+, +idxCat+ etc... instead of the value. I did an
Animate div contents one by one
How to make div animation with the content one by one from "test_1.txt" and next from "test_2.txt? This what I wrote doesn't work: Instead one by one I have animated the last file only. function MyFunction(){ var div = $('#my_div'); div.load("test_1.txt"); div.show("slow"). animate({width: '400px', opacity: '0.4'}, "slow"). animate({height: '400px', opacity: '0.8'}, "slow"). animate({height: '10px', opacity: '0.4'}, "slow").
Issue with getting dropdown selector values
Hi all, I'm extremely new to JQuery and JavaScript in general, so please forgive my ignorance. I'm having an issue with getting the value from a drop down selector. I can get an alert to display all of the values in the dropdown, but I cannot seem to figure out how to grab a single value when it is selected. I've tried using "option:selected", " :selected", etc and nothing seems to be working. I'm not sure if it's a syntax thing or some other issue i'm overlooking. Here is my code: $('div[k="W105"]').click(function()
Issue Check size from input
hi all i m a beginner and i have a trouble, i'd like check multiple files size from input file and if it's too big do an alert. I'm too bad, i don't know why that doesn't work :'(. If you could help a dumie ^^. Check my input files with id "inputcontrol" and alert. But nothing append!!! Max Size 2000 Thks Guys :-) Below my html : <span class="btn btn-primary" id="browse"> Browse… <input type="file" style="display:none;" multiple id="inputcontrol" name="userfile[]"> </span> Below my Jquery:
"Origin [...] is not allowed by Access-Control-Allow-Origin."
I tried to fix this with the approaches found here but the error remains, and no JSON data is fetched. I want to use an API found here but I can't get it to work. I'm aware that the code on line 7 would currently retrieve all JSON data from that url, but right now I'm just trying to get past the "Origin..." error. This is run on localhost. Here's my code: $(document).ready(function () { $.getJSON("https://api.tronalddump.io/random/quote", function (json) { $("button").click(function ()
iframe auto resize hieght
hi how can make iframe auto resize width and hieght ? i had used some codes but not working
Passing two functions with .click()
I want to understand why the code in my first example doesn't work as expected (only the anonymous function is called?), and why my other example runs fine. Is this problem specific to .click() or to callback functions in general? Here, only the anonymous function is called? $(document).ready(function () { $("button").click(renameButton, function () { $("div").append("<p>Para</p>"); }); }); function renameButton() { $("button").html("New Name"); } EDIT: Ok, so I added renameButton();
change of Select (dropdown) within div NOT showing id of dropdown / select
Dear Sir pls refer http://prajaktasoftware.com/digisystem/orderadd.php in this screen click select product When I click i get id name as foodiv0 Select ProductBirthdayCongratulationCorporateFamily FlowersGet WellHalf CircleOnline servicertytry X Delete My Jquery Script $('[id^="foodiv"]').change( function() { $('#cls').text($(this).attr("id")); var thisid=this.id; alert("product id0="+thisid); $('#cls').append($('#'+thisid).val()); }); i am getting alert foodiv0 i had changed dropdown or select
adding up the values of multiple dropdown lists and displaying the total in a lable.
Hi All, new to the forums, and quite new to web development so forgive me if this is a bit of a newbie question. first of all my knowledge of html is quite limited and my knowledge of java is next to nothing so I'm hoping for a really easy to understand answer. I'm trying to make a simple budgeting tool for someone who wants to have a PC built. the base price (which includes the case, motherboard and cooling is $204 and this price (displayed in the label) is updated as options are selected in
Linking to an anchor name in a webpage hosted within a Jquery accordion
I want to create two accordions on the same page. The first accordion will host web pages of articles for different topics that are located on my site using a iframe or Ajax (not sure which is best yet). The second accordion will host web pages that have different indexes for each of the different topics. Is it possible to link back and forth from the webpages within the accordions using anchors or some other way of linking to specific locations within each articles and indexes.
Replace an object with another in an array using bootstrap modal
I'm trying to update an object if it's type="external" with the 'edit' button. On clicking edit, I get a pop-up/modal, wherein I can update the details. I need to fix 2 issues: * I can't see the old values in the update modal while trying to update the data in my actual application. * Also, on clicking update, it is refreshing the entire page content. I guess that's happening due to replaceWith() method. JSFiddle Note: I'd tried using splice earlier, but it causes duplication of updated objects.
print rows table
hi my database rows show in table with html but i need print button for rows, click button print just rows print , please help me
Guidance on pulling JSON data send through textarea
Hello I am new in Jquery.I have a HTML form with textarea and a button,I have mapped the button to Javascript action and send the data entered to a REST API and pull JSON data and show same.I am using REST API of GATE cloud for sentimental analysis.I have the key and password.Kindly tell me how to structure the JSON script and format the URL with POST data containing api key and password I wanted the javascript to handle in the manner (function ($) { $('button').on('click', function () {
Eklenen sayfaya liste menusunden bağlanamama
Dreamwear jquery de yapmış olduğum uygulamada 8. sayfayı eklediğim zaman 5.saffadaki liste üzerinden a href #page8 bağını kurmama rağmen sayfaya bağlanmıyor?nedeni neolabilir..ii aksamlar
How to use php function inside javascript file?
Hello i have this function for languages using php function lang($var){ return $var; } when i write <?php echo lang("test lang"); ?> the function output will return ( test lang ) so now is my question how can i use this function inside javascript without creating another languages function to use it inside javascript, all i need is i want to convert or another idea to use php function inside js files. Kind regards.
focus on input field
So I have multiple text fields in a form, and when they click on the input field a hint will come up like Example - john@doe.com. Not as an alert, but show up beside the field and then fade away. I have 4 boxes I am trying to do that for, but I need a way to tell the boxes apart. this will just show all 4 messages at once (document).ready(function() { $("input").focus(function(){ $("span").css("display", "inline").fadeOut(2000); });
passing javascript variable to form
I'm a newbie to Javascript and from what I've read I assume there is a much better way to my approach, but here it goes. I have a form with onclick such that when a clear image is clicked on in a table cell, the background pic of the cell changes (showing that it has been selected, or unselected if clicked again). That all works, now I want to define some variable so that when the form's Submit button is pressed, a form variable is passed showing whether or not the user selected that option. The
Bootstrap Multiselect Issue
Hi, I have the following code, taken from Bootstrap Multiselect: nonSelectedOptions.each(function() { var input = $('input[value="' + $(this).val() + '"]'); input.prop('disabled', true); }); The above works, as it disables all items in dropdown A but it is also disabling items in dropdown B because this line doesn't specify the dropdown ID/class: var input = $('input[value="' + $(this).val() + '"]'); So if the index was 5, it will set 5th items in all dropdowns on the current page as disabled. Any
Next Page