Click here to Skip to main content
15,890,741 members
Everything / jQuery

Jquery

jQuery

Great Reads

by Christoph Buenger
Describes PHP application development with the free Scavix Web Development Framework (Scavix-WDF).
by Evoluteur
A full jQuery UI widget which supports various configurations and themes
by Jovan Popovic(MSFT)
Reordering table rows using drag and drop functionality with jQuery DataTables plug-in in ASP.NET MVC applications
by Hovhannes Bantikyan
This is a simple infinite scroll with Ajax post and JSON. Have fun :)

Latest Articles

by Zijian
How to generate strongly typed client API in TypeScript for ASP.NET Core
by Bhargav Technical Lead
Angular migration to version 16
by Michael Chourdakis
A quick way to interoperate between Win32 and a browser using WebSockets

All Articles

Sort by Title

jQuery 

14 Jan 2016 by Member 7909353
I am Binding dropdownlist.My code is ...
14 Jan 2016 by Member 7909353
Remove Update Panel. ...
20 Jun 2012 by markand911
I am using @Anywhere code to implement the twitter signup functionality for my website twttr.anywhere(function (T) { document.getElementById("signin-btn").onclick = function () { T.signIn() }; });Above written is my code to put...
31 Dec 2014 by Member 11262250
please help ... there is green line under all control and appear errors while running
31 Dec 2014 by Sergey Alexandrovich Kryukov
ASP.NET elements and attributes are case-sensitive, because the ASP.NET markup language is based on XML, should well-formed:http://msdn.microsoft.com/en-us/library/w7w4sb0w%28v=vs.140%29.aspx[^].It's , not
19 Apr 2013 by Necmettin Demir
"How to series" about MVC, jQuery, JSON, paging, mapRoute.
16 Apr 2013 by arbaaz jalil
I am creating a wall using a UserControl ( which is a nested GridView) i want to load the rows of the GridView on scrolling down just like facebook. I am trying to implement this method.. Click MeClick here The example seems to read the last row's first column to get the last row which is loaded...
16 Apr 2013 by _Amy
Check the value of your hiddenfield before converting it to integer. This problem may occur due to an empty string in HiddenField.Try this:protected void btnGetMoreRecords_Click(object sender, EventArgs e){ if(hiddenLastProductID.Value.Trim() != ""){ //Fetch 14 records...
8 Nov 2019 by Alireza_1362
I'm trying to call the server side method and passing value with Json format using $.ajax() ,but I got this error:"Message":"Invalid web service call, missing value for parameter: \u0027message\u0027.","StackTrace":" I would appreciate for your help.client side code:...
30 May 2013 by Prasad Khandekar
Hello,Change your calling code as shown below.$('#submit_form').click(function () { if ($('#feedback_text').val() != '') { var values = {'message': $("#feedback_text").val()}; $.ajax({ type: "POST", url: "test2.aspx/ReceiveFeedback", ...
18 Jul 2014 by Sohaib Ameen
Hi Everyone, Its me Sohaib Ameen here and I am working as a software engineer. Now a days I am working on an application with asp.net. As far as web template is concerned then Its totally responsive as I am using bootstrap libaries in it.Everything working fine but whenever I get logged...
11 Aug 2015 by Member 11072126
Hello All,I am using jquery ajax to populate a whole form on selection of an item. The form contains 4-5 dropdown lists and 3 checkbox list and few textboxes. So, I planned to bind the values using c# from code behind instead of writing fucntions in jquery itself for each dropdowns / The...
11 Aug 2015 by DamithSL
A static method cannot access non-static class level members and also static method doesn't have access to members like UI controls because it is not a part of that instance.you can get the data from your web service and populate grid using that data by your jquery method. check below...
9 Jul 2013 by Aatif Ali from Bangalore
Hai All, $( "#dialog" ).dialog( "open" ); is not working in one page I implemented this function in one another page in the same project.its working fine but It not working in other page..My code shown as followsYour session will expire in another 1...
10 Jul 2013 by Aatif Ali from Bangalore
I solved This problem..actually its not a general problem..i found error using firebug " $ is not defined".I replace $ with $j.Everythng working fine...Thanks to allAAtif
4 May 2015 by Rashmi Sutar
HI,I want to change the images after clicking on div..it works fine for Chrome and Mozilla but it is not working in IE9Please suggest,Thanks in advance..
5 May 2015 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
It perfectly works on IE 9, I tested. But you mentioned Sharepoint site. I am not sure about that. May be some script is blocked or something. Else jQuery is not referred correctly / conflicting with some other version.So my suggestion is that, please go to IE browser F12 and see the console...
6 May 2015 by Rashmi Sutar
Hi,Earlier I had used "background-color:transparent!important;" css to the div, then div click event didn't worked in ie9but now I have used "background-Red!important;"It works fine for me, so this is issue associated with transparent background.Thanks.
16 Jan 2018 by Arav_Manoj
#grdTimeReport grid should get disabled when clicking on approve button. It was working fine in IE but not in chrome. What I have tried: function OnchangeStatus() { debugger; var YearFromPage = $("#selYear").val(); var MonthFromPage = $("#selMonth").val(); var EmployeeID =...
11 Jan 2018 by Karthik_Mahalingam
per comments, you are trying to disable a div check this thread to disable the controls present in the div jquery - Enable & Disable a Div and its elements in Javascript - Stack Overflow[^]
13 Oct 2017 by alexvw
Hello everyone, Environment: ASP.NET (Webforms) (Framework4.6.1) Master Page -> Content Page -> UserControl At first, the following "code" was 100% operational (somehow, for I could see 'n' errors and warnings in Firefox's WebConsole) function...
13 Oct 2017 by alexvw
Dear all, After careful inspection, I came across the root of the problem. It turned out that I had two UserControls in the same content page, and did not realize that each has its own bootstrap modal structure. Although I gave each a distinct name, I forgot to do the same with the inner...
6 Aug 2015 by Empetor
function loadData() { allTasks = CallAjax('/Plan/GetTasks'); backlogTasks = getTasksByState(1); resolvedTasks = getTasksByState(2); closedTasks = getTasksByState(3); $("#listBacklog").ejListBox({ dataSource: backlogTasks }); .................. ...
6 Aug 2015 by F-ES Sitecore
Follow the documentation\instructions for implementing the ejListBox plug in, they are usually on the site you got it from. You will be missing a script tag, or have the script tags in the wrong order\location.
7 Aug 2014 by Prasad Avunoori
Hi,I am using jquery-1.11.1.min.js.In my page i also have some ajax calls. Jquery not working after ajax call. For this i used $(document).ajaxComplete(function(event, xhr, settings) { JqueryBinder(); });But, ajaxComplete() is not being...
27 Oct 2011 by Bun Leap_kh
hi every one!i have a problem with $(jQuery).append() function. here is my function add:var newElement='';$("#myDiv").append(newElement);it is called when a button click.and here is a function handle new element...
28 Oct 2011 by Muralikrishna8811
Hi, I did what you want check this once function f1() { $("#maincontent").append(" "); $(".myimg").click(function () { alert("fgdfg"); }); } .myimg ...
28 Oct 2011 by Pete O'Hanlon
When do you add the $(".myImg").click function? If you add this before you actually add the element then jQuery cannot actually add it to the element because it doesn't exist. What I would do if I were you is add the $(".myImg").click function immediately after you call .append.
24 Jul 2013 by chirag.jdk
$("#booknow").live('click',fun...
31 Aug 2018 by User 13204940
Hi, I'm developing a site here[^]. I've disabled body scrolling and enabled scrolling on #page, which means I need to assign a height manually. I do this every 500ms by setting the height of #page to $(window).height() minus the page's top and bottom 16px margins, and the header's top and...
31 Aug 2018 by Richard Deeming
The site looks the same for me in Chrome, Firefox 61, Edge, and IE11. If you can drop support for old versions of IE, you might do better with Grid layout - no Javascript required: Demo[^] Can I use... CSS Grid Layout[^] A Complete Guide to Grid | CSS-Tricks[^] Grid by Example[^]
23 Apr 2013 by rajan1189
$(window).load (function() is not working when i redirected this page from other page using anchor tag.... my page is not loading..i have to use this only not document.ready .. thanks in advance
24 Apr 2013 by Somnath Leo
Write this after the html ( all design code ) $(window).load (function() {//code goes here...});//doc ready
24 Apr 2013 by SIJUTHOMASP
Would you please specific on the comment "my page is not loading". Does it mean that the redirected page itself not loaded or your (window).load didn't work. Please provide more details?Thanks,Siju.
8 Oct 2013 by Md. Tarek Showkot
Jqery Code:$("#moviesearch").keyup(function(){ var m_name = $(this).val(); alert(m_name); if(jQuery.trim(m_name).length
21 Jul 2014 by virang_21
I am using one of the third party plugin for address validation. In my application I am calling one function checkAddress () from their implementation of JQuery plugin. Looking at the plugin code it internally makes $.ajax call and return list of addresses on success:function() but there is no...
22 Jul 2014 by Tadit Dash (ତଡିତ୍ କୁମାର ଦାଶ)
Quote:Does that mean if $.ajax inside the plugin function failed it will not give any error information back to the calling application ? Correct. That code should be handled inside the error block, which is missing in this Ajax call.
6 Jun 2014 by rAZHere
$.ajax({}); not working for type : POST in asp.net. When posted the json data and tried to retrieve it, it returns NULL value. For example $.ajax({ type:"POST", dataType: "json", //cache: false, //url:...
6 Jun 2014 by Nirav Prabtani
1) First ,you have not mentioned method name in Ajax post method 2) You have not create webmethod 3) Yu have not returned any kind of data from webmethod than how can you ger any results in Success function??Here i have created small example of ajax method for you.. :).First of all set...
30 Sep 2013 by Ronnie22
I have two filessearh_journal.phpfunction submitForm() { var form = document.myform; var dataString = $(form).serialize(); $.ajax({ type: 'POST', url: 'journal_table/get_data_journ.php', data:...
30 Sep 2013 by Kamran Ayati
perhaps you can not correctly connectand then php cant to recieve data
29 Mar 2013 by larssy1
I've started to work on a private project. However, in the first stage already faced a problem.The returned data is in XML format (not that bad, but takes alot of effort to parse to usable objects)The remote server doesn't accept any ORIGIN except for himself, so the browser throws the...
30 Mar 2013 by Sergey Alexandrovich Kryukov
The methods $.ajax, even less $.getJSON are unrelated to XML. You use Ajax to download some data, then post it as XML, as you correctly put it.Hard or not the parsing is, you have to do it; "usable objects" don't parse themselves. :-)Here is how you do it with jQuery:...
29 Mar 2013 by larssy1
This is not an actual solution for my problem given. But it is a way to bypass the origin using PHP.In my javascript, I've requested my PHP code using the following:function Communication () { this.global = new Global(); this.allowedParameters = ["Character"]; ...
7 Apr 2015 by Roshan Bobade
$.getJSON('VSAsyncMethod.aspx?...
6 Aug 2015 by Sujith Karivelil
Am creating a popup with Dynamic textbox and make it to select date by assigning Datepicket to it by using jquery as follows: Dim htmlString As string= "" & _ "$.noConflict();" & _ ...
24 Jul 2012 by PratapReddyP
CodeProjectIn this post we will see when to use and How to use ajax calls in MVC Razor using JQuery.When i am trying to create a POC for combination of entity framework and a MVC Application, i came across this requirement which made me to use $.post() and $.get().Now, people very easily say, $
16 Jan 2017 by Krantikiran
Hi,i am loading iframe with some template for that template i need to show pop up for selecting image,pop up loading behind iframe..it is working on chorme but in fire fox it is not working.What I have tried:i have tried with &wmode="transparent" it is not working but tired with...
4 Aug 2016 by Anjali0904
I am trying to open JQuery dialog on a click. When I click a cell I get'JQuery' is undefined error.It works in chrome. The strange thing is it worked in IE till yesterday and suddenly stopped working.It gives me an error in in jquery-ui.js. in v1.11.4My code looks like ...
4 Aug 2016 by AnvilRanger
You are loading two different versions of jQuery and jQueryUI. You only need to load one of each.
24 Jan 2020 by NJ44
Hi,I have an anchor element placed on my HTML page, which is under some conditional statement:@if(someCondition){IOP - In Plan}CSS:a.inactiveLink { pointer-events: none; cursor: default; ...
16 May 2016 by Kornfeld Eliyahu Peter
The pointer-events CSS property not supported in IE before version 11...
28 Dec 2016 by Member 12546977
Instead of doing it using css , try to set attr/prop using jquery If you are using jQuery
24 Jan 2020 by Member 14725965
I was facing exactly same problem. By adding css property 'display: block' to class, it worked on IE 11. I'm just using that now along with 'pointer-events: none'.
28 Aug 2014 by RajeeshMenoth
This error occurred in asp.net & C# program?System.Data.SqlClient.SqlConnection' in Assembly 'System.Data, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' is not marked as serializablewhat is the reason for this type of error occurred?
28 Aug 2014 by Gihan Liyanage
Mark your connection class as serializable[Serializable()]public class YourClass{}
30 Mar 2015 by star_tasneem
want to dynamically populate dropdownlist. have table of District{district_id,distrint_name} and Thana{thana_id,thana_name,district_id(fk)}.The controller code:public class CenterController : Controller { string connection...
13 Jan 2015 by Nishant.Chauhan80
$(document).ready(function () { var results =[1111$11,1222$22,2333$33]; $('#bttn_Click').click(function () { stringArray = new Array(results); stringArray.split(','); // Error display for (var i = 0; i > stringArray.length;...
13 Jan 2015 by Kornfeld Eliyahu Peter
new Array() can not get an array as parameter...It should be a list of values or nothing...In your case results is already an array so you have 3 options...1. Assign the existing array to the newstringArray = results;2. Clone the existing arraystringArray = results.slice(0);3. Do not...
15 Jun 2016 by Alex Glaros
Am new to jQuery and javaScript.How can I (1) extract a data item and (2) concatenate it to a string below.This working sample below works and demonstrates how "alexLink" contains the data I want.window.open(data.node.data.alexLink, "_blank");I want to take alexLink contents and...
15 Jun 2016 by ZurdoDev
As mentioned in the comments you'll need to do some debugging if data.node.data.alexLink does not contain a value.Concat is very simple. ajax("{{=URL('default', '" + data.node.data.alexLink + "')}}", [], ':eval');
26 Jun 2018 by Member 13884629
I managed to make it but got some minor hiccup. Currently, the active class been added to current URL including the All Watches link (maybe because the URL is the homepage URL). May I know what I need to author for the script to work exactly as what the current URL looks like. This is the HTML...
26 Jun 2018 by Richard Deeming
The match method[^] takes a regular expression as its argument, and either returns an array containing the matches, or null. Your href is not a regular expression, but since it doesn't contain any special characters, it will act like one. It doesn't contain any anchoring clauses, so your match...
8 Aug 2013 by DGKumar
I have used this after when i click on button that will display message and go to the view $(document).ready(function () { $("#btnSubmit").click(function () { var sYear = $("#startIDs").val(); var eYear =...
8 Aug 2013 by harshal7689
function Yearcompare(){var year1=$("#dropdownlistboxes1").val();var year2=$("#dropdownlistboxes2").val();if(year1
13 Jun 2013 by VIP Venkatesan
Hi friends, I want to set one alert box after 2mins from page load.is this possible?
13 Jun 2013 by Prasad_Kulkarni
You can refresh your page for specific time intervals this way:This will refresh your page on every '120' seconds, add your logic on page load.Refer: Refresh / Reload Page at specific intervals[^]
13 Jun 2013 by Nick Fisher (Consultant)
Yes, you can do this.Change your HTML 'body' tag to:And then in your page header: function startTimer() { // show an alert after 120 seconds var t=setTimeout(function(){alert("Some alert...
13 Jun 2013 by Thanks7872
Refer to below two links and modify the code provided in both of the links.Timer.Start Method[^]Start timer when page has loaded.[^]Regards...:laugh:
12 Jun 2013 by VIP Venkatesan
Hi Friends, Suggest me some Best Chart examples for dot net.. I've worked on with MVC Json Charts,HighCharts very long months ago.. But i've not any idea about charts in aspx. Plz suggest some attractable Charts.Thank u..
12 Jun 2013 by Ahmed Bensaid
ASP.NET 4.0 Chart Control[^]
12 Jun 2013 by Zafar Sultan
I have used This[^]. Fantastic control and free.
14 Aug 2014 by FUAD LAMIN
hi i am new to coding and i am working on a jquery mobile web app. basically i want to build a news application that dynamically populate list view and create a dynamic html page. i found this code on the internet and i have editored it to the best of my knowledge.but the after editing the code...
14 Aug 2014 by OriginalGriff
That isn't what we are here for: that is your job, and if you want people to do your work for you, then you will have to pay.I suggest you go to vWorker.com and try there.But be aware that you get what you pay for: pay peanuts, get monkeys...
18 Aug 2014 by pandu web dev
Check code refactoring techniques. If you don't know how to do that goto odesk.com and post a project in it. It is better than other freelance sites.
5 Nov 2018 by harun_119
Guys I'm facing with an interesting problem.I have 2 file: ShowRecord.aspx and Ekle.aspx .In Ekle.aspx I have a web form like the pic http://prntscr.com/8tl55z[^]And In ShowRecord.aspx I have a gridview which I can print values my in database.http://prntscr.com/8tl5kk[^]When user...
20 Oct 2015 by Afzaal Ahmad Zeeshan
Quote:Code always saves the records to the database.Which means that the code for ajax is working fine, as it sends the data to other page (or wherever ajax is submitting the data) then the problem comes is that response is not shown. The problem, any problem that you may encounter in web...
5 Nov 2018 by Bryian Tan
You need to post some code for anyone to better assist you. Anyway, by reading at your post, sound like the code is firing two request to the server, sometime the save record get there first and sometime the print request reach first (that why it blank). Not clear how your code currently look...
10 Jan 2012 by skypoints
...
10 Jan 2012 by Not Active
The problem is case sensitivity. 1) There is no function named Click. It is lower case, click. You should have gotten a JavaScript error on your page when loading in the browser.2) $("#submit1") should be $("#Submit1") since have named your element with an uppercase first letter.
10 Jan 2012 by skypoints
Hi, i insert: true false; , now it's working $(document).ready(function () { $("#Submit1").click(function () { $.ajax({ contentType: "text/html; charset=utf-8", data: {ID:...
6 Jun 2013 by dilzz
Dear Experts, In my project i have used .html() function to copy some html contents.But When i passed the Id to .html() function dynamically then it is not working...Please see the JsFiddle Please help me to solve this..ThanksDileep
6 Jun 2013 by Manfred Rudolf Bihy
The problem is that you introduced single quotes around the identifier. They are not needed. See the corrected code below as it does exactly what you want:var _UCID = 'ef6a5118-5282-4930-bb21-4f825da20840'var UID = "#" +...
6 Jun 2013 by Jignesh Suvariya
var _UCID = 'ef6a5118-5282-4930-bb21-4f825da20840';var html = $('#' + _UCID).html();alert(html);Preppend '#' when you use Id selector of jQuery.
5 Jan 2012 by Stuart Z1
I have searched online for several hours with no solution. The .js files shown in the HTML below work only when the html is opened as a file in the browser and not on localhost. I have tried "./subdirectory/file.js", "/subdirectory/file.js", and "subdirectory/file.js". All forms work fine...
11 Jan 2012 by Stuart Z1
Finally!!! Got it to work curtsy of http://docs.jquery.com/Using_jQuery_with_Other_Libraries. Must have been having a conflict with Boilerplate template. I had jquery scripts for both the table and, on the other html page, the tabs. I had to use jquery.noconflect().sample:
2 Sep 2011 by Jimtiger
Hello folks.I've come a cropper with a javascript if else statement. I know what I want to achieve with the javascript syntax which is almost identical to actionscript which I have better knowledge of. So...Dom - declaring var - btnone ...
2 Sep 2011 by Dylan Morley
You've set the variable to a boolean, but you're comparing it to a stringif(btnone == "true")try thisif(btnone == true)
2 Sep 2011 by Graham Breach
You declared btnone in an anonymous function, which means it is not available in the scope of your event handler. Try moving the declaration out of the jQuery ready function: // global variable var btnone = true; $(document).ready(function(){ ...
12 Jan 2019 by TheBigBearNow
Hello all, I have a bootstrap 3 modal and I want to use bootstrap 4 to make it work the same way. I have tried quiet a few different ways to make this work I am trying to use something like the fadein fadeout and fadetoggle methods but in bootstrap4 they don’t have these. I tried .modal(show)...
7 May 2011 by Yonathan1111
Hallo everyone,I have been attempting to creat .Net applet. However, nothing is coming from the application I wrote. I couldn't see anything.When I browse it with IE9, it displays some security settings to be changed, however after I got changed to these settings the same thing is...
7 May 2011 by Hemant__Sharma
Few possibilities1- $("[id$='myID']") is not returning anything2- if point # 1 is returning anything it doesn't contain MACAddress property3- Point #1 is returning a collection of objects and MACAddress method belongs to an item not collection so fetch an object, if it should return only 1...
1 Dec 2020 by octavia81
I'm quite new in .net core. Learning in progress and i'd like to know how much do we need to know ajax, jquery, javascript if we want to get certain level proficiency in .net core web application. I have good enough knowledge in bootstrap css and...
1 Dec 2020 by Afzaal Ahmad Zeeshan
.NET Core is a backend technology in a web development stack, while JavaScript, jQuery (and other derivative technologies, such as Ajax) are for the frontend. If you are hands-on with JavaScript, why not go with Node.js? Node.js[^] If you are...
18 Jan 2017 by Bart-Jan Brouwer
.Net Core datagrid with server side paging, sorting and filtering
4 Nov 2013 by SimbarasheM
A .NET v4 Library for converting DataTable row(s) to JSON String for WCFServices
31 May 2016 by Yaseer Mumtaz
.NET interview questions and answers with real world examples and code snippets
22 Jan 2010 by Alaa-eddine KADDOURI
This articles describes the newly implemented features in version 0.4.0: client events, third party extensions, and resource management.
12 Dec 2014 by Kurac1
What event should i use on an select tag option, if something, is added to that event whats that called? $('#myDivResultSelect').on('change', function ()Using 'change' i must click in the selectbox, what should i use when something gets added to it?