event not firing help
im trying ti generate table dynamically from database using ajax jquery (Table is lits of students ). i got the result fine. when i view source page the tbody of table is empty ??? . i want to handle event and anchor click to list student detail but onclick fire fine i got the field empty . why ??????????????????????????????? // Fill table with data function addRows() { var rowsResult = '' ; //alert('ssss') ; $.getJSON('/users/studentlist', function (data, textStatus, jqXHR){ var x =0 ; $.each(data
Processing arrays/objects pulled from XML?
Sorry if this is long-winded. I'll stick a tldr at the end. I don't have any development experience, but at my job I occasionally need to use jQuery to manipulate HMTL pages. I've skated by piecing together bits and pieces from the jQuery documentation/various blogs/StackOverflow. Lately I've been trying to actually understand what is happening rather than just blindly copying and pasting until something works -- which is what this question relates to. Here is my current project: Audience Like
Unable to set href
I am unable to set the href of an <a> control using javascript or jQuery in my asp.net application. I recently installed jQuery version 3.2.1 and have been attempting to dynamically set values of the controls within an aspx modal popup control. All seem to be working except the one to change the href of an <a> control. Here is my function: function PopAddWebLink(thisNode){ clearPanel('cphMain_pnlAddWeblink_Pop'); // Copy data into Popup var thisTaskID
Bradley Witham- diff. b/w find and children
Hi, I am Bradley Witham I am new to jquery. I want to know what is the difference between using find and children in jquery. Thanks, Bradley Witham
我有个问题
很久没有登陆jQuery的网站,之前一直使用jQuery2.1.4,今天看到网站上已经更新到3.0把版本,我不知道在这之前经历过多少改动,如果我现在使用最新的版本需要注意哪些问题?我需要帮助,谢谢。
refreshing certain div many times
Hi I need to reload part of page (div) everytime I click the link in this part (div). I write almost successfully code bellow - when I click first time it works - but could not refresh second time and so on (nothing happend) <!DOCTYPE html> <html> <head> <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("#abcd").click(function(){ $("#div1").load("this_file.html #div1"); }); }); </script> </head> <body>
Select an option when input change
I want to select an option when I insert a value into an input. Here's my HTML: <input type="text" id="point" /> <select id="passed"> <option value="2"> -- Choose --</option> </select>And here is the JS: $(document).ready(function () { $("#point").change(function () { var val = $(this).val(); if (val === 0 && val < 60) { $("#passed").html("<option value='0' selected='selected'>Not passed</option>"); } else if (val >= 60 && val === 100) { $("#passed").html("<option
Unable to resolve dependencies on installation with .Net
Hello, First time post, new to jQuery. I'm wanting to use jQueryUI with .Net C# MVC applications. I already have jQuery 1.10.2 installed in my project. I'm doing some video training that requires jQuery.UI.Combined, which I don't have yet, so I'm trying to install it with NuGet, inside Visual Studio 2017. Since versions 1.12.x require jQuery >= 1.12.4, and I only have jQuery 1.10.2, I'm trying for version 1.11.4 of the UI, since that only requires jQuery >= 1.6.4. But all that's kind of beside the
how to alert a message for inserting values from the database in a form?
<body> <div class="container"> <div class="box box-warning"> <div class="box-header with-border"> <h3 class="box-title">General Elements</h3> </div> <!-- /.box-header --> <div class="box-body"> <div class="col-md-8"> <form role="form" runat="server" id="loginForm"> <!-- text input --> <div class="form-group"> <label>Enter your name</label>
img rotate plugin / reference to jquery object
using https://code.google.com/archive/p/jquery-rotate/downloads this works (rotates first image for some reason, even if there are many) $('#draggable img').rotate(90) this returns ObjectHTMLImegeElement alert($('#draggable img').get(1) ) this returns : TypeError: $(...).get(...).rotate is not a function $('#draggable img').get(1) .rotate(90) ?
Run script
Hi I have this script that works fine in the console but won't when code is in the page html. What do I write to get this to run when page is loaded. Maybe I am missing some document ready/function ready or such? The script is to send a query string to the next page if a person clicks a <a> tag. Thanks in advance / Daniel <script> $('a').attr('href', function (index, value) { return value + window.location.search; });
</script>
Hidden Image
Hi Im trying to create a page that when the user click on a div a hidden image will appear and scroll dowm the others elements of the page, im a starter on web development and im still learning jquery. (sorry if my english is bad thats not my first language)
Can a development bundle be obsolete?
My Wordpress-site www.magoster.com gives a fatal error on a Contact Form7-Datepicker part in script-loader.php when customizing the theme (Twenty Seventeen, newly installed). I have no idea what causes this so I try to eliminate possible causes. As private person and not exactly an IT-expert I have some questions. The development bundle I use is version 1.8.5. I have downloaded version 12.1 now. Is it possible that this old bundle can be obsolete and MIGHT cause errors? If so, can I just FTP the
How to Enable nullable value check box in SSRS report loading by default
Hello All, I am working with SSRS reports in current project. I am new to this. So please help me to achieve this. in below screenshot https://www.dropbox.com/s/5dcr90jymtq4f0v/1.PNG?dl=0 when i click on submit, without giving second text box value(not mandatory parameter) it will redirecting to below url(screenshot) https://www.dropbox.com/s/w58fl7esnwyxuco/3.PNG?dl=0 but by default not mandatory value check box should be checked here. It's not happening here. this is my code block. prepareURL:
Answer validation and no skipping questions (for Quiz)
I'm building a quiz and there are two functions I can't seem to work into the mostly complete code. I followed several tutorials and forums to put this together, and cant seem to work in what I need. If someone could point me in right direction? What it does now: 1. Allows questions to be skipped 2. Checks answers after the last question, and displays the question and correct answer at the end. What I'd like it to do: 1. Cannot proceed to next question without a selection (cannot leave radio empty)
Jquery licnese and download?
The following pertains to versions of JQuery: 1. To be able to use JQuery libraries, do I need to buy some kind of a license? If so, would point me to a link that will tell me where to purchase this license from? 2. I know that I can point to a https url to obtain various links to jquery logic. However, I am wondering if I can obtain the exact JQuery down file logic that I can include in my application? I am asking this question since I am assuming that the jquery link may become deprecated at some
is this possible to get authorisation code by JavaScript??
I am using third party tool which will interact with Box enterprise account and there is no configuration are available to configure redirect URL. For this, first time when my app will try to access account it will be redirected to Box page. Box finally redirects user to my redirected URL after acceptin user credentials. This redirected URL will have a authorization code. is this possible to get authorization code by Javascript?? Below is how i am trying to authorising: https://account.box.com/api/oauth2/authorize?response_type=code&client_id=33232323&redirect_uri=https:0.0.0.0&state=authentication
converting jquery 1.3 to current 3.0 version
I have a VB.net 2010 web form application that currently uses the following versions of jquery: <script src="../scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../scripts/jquery-ui-1.7.2.custom.min.js" type="text/javascript"></script> <script src="../scripts/jquery-1.3.2.js" type="text/javascript"></script> <script src="../scripts/site.js" type="text/javascript"></script> I see from the jquery forum, that I can use converters from the following download location: https://jquery.com/download/ to
Need help coding for Jquery result
Not sure if this is the correct forum for my question, if not please recomend where to go. I need to have the “city” result from the web address https://freegeoip.net/json/ post in my website when a visitor lands on my landing page. Below is the JQuery/javascript and html I am attempting to use with no luck. I am using wordpress with Generatepress theme. Note: Below javascript code is being place in the first block of the footer section. <script> $(document).ready(function(){ $.get("https://freegeoip.net/json/",
Validate page correctly
I have a few textboxes gathering info all with validation controls in an asp net page. When the page is fully valid i would like the user to download a file and show a panel box and hide the original. To do this i have <script> $(function () { $('#<%=pnlDone.ClientID%>').hide(); $('#<%=pnlOne.ClientID%>').show(); if (Page_IsValid("")) $('#<%=Button1.ClientID%>').click(function () { setTimeout(function () { $('#<%=pnlDone.ClientID%>').show(); $('#<%=pnlOne.ClientID%>').hide(); }, 1000); }); }); </script>
Adding Top Margin to JQuery Validation?
Hello, I am trying to use the JQuery Validation Plugin found at jqueryvalidation.org and I have the validation working fine on the site. However, the site uses a floating menu so when you click the form submit button the page scrolls to the form input field that the validation error message is for. But the floating menu gets in the way of this functionality. There must be a simple way to add an offset top margin to this so that when you click submit and the validation scrolls to the form field that
children behaving strangely
On a page which offers the viewer a choice of colours for various elements, I have this structure for changing the background: Two functions are invoked: showBg() changes the gradient on the html tag; showLink() shows a link to loading a new page about the chosen colour: this is where there’s a problem. function showLink(child) { $('.abt').fadeOut(400); $('#bgswatch a:nth-child(' + child + ')' ).delay(1200).fadeIn(1200); } The function works fine—but the child numbering is crazy. When I count
Why search still sucks?
It's been years since I used search on this site the last time. Why is still so useless? Just replace it with Google Search, this is terrible.
HTML Encode
I have a general knowledge about jQuery syntax but I can't figure out how this piece of code works: function htmlEncode(value) { var encodedValue = $('<div />').text(value).html(); return encodedValue; } Can someone please clarify this to me? If seems in first step it select all closed <div /> tags in the page (what???!!!) then it set its text to value (what???!!!) and in final step it return html markup of <div /> + value. (WHAT????!!!!!!!!!!) It doesn't make
How to add a new function for replay audio
Hi there, I am new to jQuery and find a Code Snipped which I use, but there is a missing function for replay audio files. And I searched now for days to find a solution. Can someone give me a hint? Currently you can start each audio file and pause it and to continue you press play again. If the file then ends, you can't replay the audio, and this is my missing function which I don't get to work. HTML Audio Playbuttons <audio id="myAudio"> </audio> <div data-pos="0" data-src="test1.mp3" data-src2=""><button
Replace <options> with .html()
Hello, I have the following problem. I would like to renew the options in a form per AJAX. Therefore I wrap a <div> around these options and get the new options out of another file. All is working well until the line "alert(result);". The next line "$("#options").html(result);" doesn't work. Could you tell me why this is the case? <!doctype html> <html lang="de"> <head> <meta charset="utf-8"> <title>Fill Div-region Options füllen</title> <script type="text/javascript" src="scr/jquery.js"></script>
unable to bind jtable in mvc 4
i write certain piece of code using mvc 4 and jquery and jtable ,but data is not visible in grid ,only blank grid is present , (No data available!) although i have updated all references of jquery in vs 2012 , action method is showing 3 records at quick watch but not showing in grid any help here is view action method [HttpPost] public JsonResult DeptList() { try { List<TBL_Department> persons = new List<TBL_Department> {
Manage claas in list
Hi there. I have a simple list <ul class="dropdown-menu"> <li class="header">Esercizio Contabile</li> <li> <a href="#" class="esercizio"> <i class="fa text-aqua"></i> 2018 </a> <a href="#" class="esercizio"> <i class="fa
Bradley Witham- jquery error
Hi, I am Bradley Witham , I an using Jquery and getting this error. Error: "TypeError: emails.match(/@/gim) is null" How can i resolve it.
Pop-up codeigniter
hello . I need help . I inserted the script. but it does not work correctly. help me please . which container or block I click it's opening just the same thing but it should open the element that was clicked http://digi.besm.co.uk/ $(document).ready(function () { $("button").click(function () { $(".pop").fadeIn(300); positionPopup(); }); $(".pop > span, .pop").click(function () { $(".pop").fadeOut(300); }); }); <div class="first-con"> <!-- Content wrapper
Passing the Value Button when click.
I know some of you this problem is pretty simple to do, but I am working in a week to find it out what is the right way to function it well. in the 1stpage.php there is a multiple buttons with different values in it, ie: <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"> </script> <a href="#myModal" data-toggle="modal" value="#01" name="btn" class="button2 btn btn-primary model_open" data-btnval = "#01" aria-hidden="true" data-dismiss="modal" >form</a> when clicking the
On and Off Button
I am using an Action button which is to show if the information from my database is successfully posted to my page, from echoed "Not Posted" --> to "Posted" when the action button is clicked. <?php echo '<a href="#po'.$rs['id'].'" data-toggle="modal" class="btn btn-success" id="post">Action</a>'; ?> here is the code for echoing the "Posted" when the action button was clicked; <php $status=$rs['post']; if ($status<2){ echo "<td>Not Posted</td>";
Initialize Photoswipe with jQuery
My galleries have two different formats: one for photosets, and one for stand alone images. I am trying to use jquery to initialize the gallery, but when I click on an image, it always opens the first image in the page (except when I click on the third image, which for some reason opens the second image). You can see my code here: https://codepen.io/anon/pen/mqWBXm <- Additionally, I would like to get the slideshow to only show the image(s) in each <article> Currently, the slideshow shows all the
Photoswipe + jQuery photo gallery
I am building an image gallery using photoswipe (http://photoswipe.com/), but I'm running into a small issue: when I initiate the gallery, it always shows the first image, regardless of which image I click on. Here's a pen showing my code: https://codepen.io/NordStorm/pen/Kqbpaj What am I doing wrong?
Help with taking values in an array, appending a string in front and behind
Hey guys, I am some what a beginner in jquery/javascript. I am familiar with how it works, but its been a minute since I have worked with it and recently i've been tasked with something that I think jquery/html would be best for. So I have a list of 500 refund numbers, i put them into a text box, click a button, and they currently go into an array, I know this works as when I alert the array, I see my values. What I need some guidance with is how can I take the numbers in this array and make it populate
Cannot edit data to show information on particular drop down selection
Hello all wanted guidance with my code and a functionality shared part of code here.I want to show "Diesel variant not available)when diesel is selected for a petrol variant like maruti(brand),model(alto),fuel(diesel),but on changing the data "Estimation requires inspection of your vehicle. Please go ahead and book" it still shows the same sentence what can be possible cause and how to fix same. function(data){ if(data) { if(data == 'No 0Price')
Load content into multiple divs simultaneously
Hi; I am new to Javascript and Jquery. I am trying to load content of two divs on pageB.html into two divs on pageA.html respectively. The structure of pages are as follow: pageA.html contains: <a href="pageB.html">link</a> <div id="cl1Content">this is where "imgContainer" from pageB.html sholud load in</div> <div id="cl2Content">this is where "caption" from pageB.html sholud load in</div> pageB.html contains: <div id="imgContainer"></div> <div id="caption"></div> jQuery Code That I am using:--------------
Browser not displaying
Hello, Real noobie. My question is about a demo countdown JS file script, I'm trying run in a web browser The demo script works fine, but when I apply sample code of another format that I’m looking for to the html file script section. It doesn’t display. in the web page Example: I replaced the default script from the index.html file.... <script> $(function () { var austDay = new Date(); austDay = new Date(austDay.getFullYear() + 1, 1 - 1, 26); $('#defaultCountdown').countdown({until: austDay});
[Ajax] browser console synchronous error using .load()
Hello community, I'm new to jquery with some bases and I need your help to solve my problem that takes me a lot of time Basically, I want a dynamic page where I can load any page on click (I have 2 pages). In practice, all in working fine, up to a certain limit... When I trigger the click one time, I get errors, and with multiple trigger click its even worse and ends with a browser freeze. Index.html : <p class="click-see" href="inc/print.html">Enter</p> // When I click for example here <section
Determining which button was clicked
Hi all, fairly new to jQuery & AJAX, but been programming for years. I want to select a club and display data for that club. I am trying to use 8 vertical buttons like so: <button class="button" >Rotary</button> <button class="button" >Kiwanis</button> etc. and according to the one clicked, I display info with this jQuery. $(document).ready(function() { $("button").???set the correct div in next line by which button was pressed. $("#div1").load("clubFile.txt #divClub") the txt file is something
Next Page