• Validation Plugin with TinyMCE

    I am running into an issue trying to validate a textarea that has been taken over by tinyMCE. I can get the data into the orginal textarea and could validate it there - but the field is hidden. I need to keep the default of not validating hidden fields. I was unable to figure out how to set ignore to all the hidden fields EXCEPT fields with a specific class. Alternately, I tried to validate the content in the TinyMCE created textarea, but field is buried in an iframe, the id is "tinymce" (and I have
  • Question about Open Sockets ?

    tuy vậy, để khoe ra hết vẻ đẹp của phụ nữ, các chị em nữ giới cũng cần lưu ý cách điểm trang và chọn y phục ăn khớp nhé. Dưới đây mà các gợi ý điểm trang đẹp có son đỏ, Các bạn hãy tham khảo nhé.Đối sở hữu phụ nữ, màu son đỏ từ lâu đã được coi là biểu tượng của nữ quyền và sắc đẹp. ấy cũng là lý do vì sao các quý cô đều đôi lần muốn thử màu son này cho những dịp cần thiết của mình. ngoài ra, kế bên những biểu tượng sexy thành công có màu son đỏ, không ít phái đẹp đã không thể tự tín tuyệt đối, bất
  • Do action when two buttons are clicked one after another

    Hello I am trying to make an alert when two buttons are clicked one after another but I have a problem, the following code doesn't work <script> var hasBeenClicked = false; $(document).ready(function() {     $("#submit1").click(function(){         hasBeenClicked = true;     });   var hasBeenClicked2 = false;    $("#submit2").click(function(){         hasBeenClicked2 = true;     });     if(hasBeenClicked==true && hasBeenClicked2==true){     alert('Alert');    } }); </script> <body> <button type="button"
  • how to use ('select').each for different tables

    Hello: I have two tables in a page and I can show different table based on the "EthnicityGroup". now I want to calculate risk based on different tables. Now when I click "calculate" button, it didn't return anything. Any help is appreciated. HTML code: ...... <form name="form" autocomplete="off">      <table id="tbEth">         <tr>             <td>Ethnicity Group:</td>             <td style="padding:10px 0px">             <label>               <input type="radio" tabindex="1" name="EthnicityGroup"
  • two jquery-slider variables via ajax in php

    Hello, I have two jquery scripts. These are two range slider which creates values between 1 and 25 (level) and 1-4. (qualityId)  I send the values of these two sliders via ajax in the php_file.php. I need the values of the sliders get changed dynamically in a link since I need to create a link to a json from where I echo out some informations via php. So everytime a slider gets moved I want the both values gets changed dynamically and independently in a link without a page reload. The problem At
  • Why the list item dont stay active when is clicked?

    I have a menu with some categories:         <ul class="Categories__Menu">             @foreach($categories->take(6) as $category)                 <li class="active">                     <a href="#" name="category" id="{{$category->id}}" href="#">{{$category->name}}</a>                 </li>             @endforeach             <li><a  data-toggle="modal" id="showCategories" data-target=".bd-example-modal-lg" href="">More</a></li>         </ul> If the user clicks in More it opens a modal with more
  • qunit, circleci, and google apps script

    Hi there Can anyone provide any direction on running qunit via circleci? I'm using qunit to test my google apps script. Thanks in advance!
  • I have problems to solve. Everyone help me.

    Phun xăm môi là kỹ thuật khiến đẹp làn da môi, giúp môi bỗng nhiên hơn, đẹp hơn và điều chỉnh khuôn môi sao cho kết hợp có khuôn mặt. Đối mang kỹ thuật phun xăm môi pha lê được dùng bằng các nguyên liệu, máy chuyên dụng đến từ Hàn Quốc sẽ mang lại cho bạn làn môi xuất sắc, đột nhiên. xem thêm:[url=https://phunxam.com/ban-co-dang-thac-mac-phun-moi-gia-bao-nhieu/]https://phunxam.com/ban-co-dang-thac-mac-phun-moi-gia-bao-nhieu/[/url] kỹ thuật Hàn Quốc được những chuyên viên phun xăm có tay nghề cao
  • Replace not a function

    Hey everyone,  I'm trying to replace/trim out some unwanted text from an ajax call. I've tried using .replace, .trim and .slice and keep getting the same error that none of these are functions. My impression is that this error only happens when I try to target numerical values and not string elements.  $(function displayGroupItems() { $('.group-submit').click(function(event) { $.ajax({ url:'ldap/groups', method: 'GET', dataType: 'json', success: function(data) { $(this).replace("/cn/g", " "); $.each(data.groups,
  • Click to multiple row grids --> Popup

    Hello, I've been working on jquery mobile recently. Now I have the following problem: I would like to create multiple row grids which open a popup when I click on a cell Click to edit it. The background color of individual cells should be adjustable. can someone help me?
  • HoldReady deprecated

    Hello, We've seen that holdReady has been deprecated in v3.2 but can't find any documentation to indicate how we're now meant to handle the dynamic loading of a resource, which needs to be loaded before ready fires in the main page. Currently, we're tempted to just carry on using this function whilst it still exists, but would obviously prefer to use a recommended alternative if one exists. Many thanks for any suggestions, Joe
  • Replacing AJAX results when new items are clicked

    Hey everyone.  Currently I have two functions that call endpoints in AJAX and they return json files with member information.  These are seperated into two columns (Groups and Members) I can populate everything, however, what I want to happen is when a new different group is clicked, the old results are replaced with the new one instead of being added to the list, which is what is happening now. //Get JSON from LDAP for groups $(function displayGroupItems() { $('.group-submit').click(function(event)
  • Conflict of jQuery libraries

    Good day, conflicts 1.7.2 / jquery.min.js with jquery-3.3.1.slim.min.JS library from Bootstrap 4. The point is that autocomplete.js is used for search, and it works only  with 1.7.2 / jquery.min.js, and Bootstrap 4 needs 3.3.1.slim.min.js, I tried jQuery.noConflict (), but  did not work, maybe someone will tell me how to solve this problem. the link to the site I will be very grateful
  • Using delay() to show elements in sequence fails

    I have a button and an unordered list with its items hidden: <button>Show</button> <ul id="letters">   <li>A</li>   <li>B</li>   <li>C</li> </ul> The CSS: #letters li {   display: none; } I want to show elements in sequence o button click. My script: var showLetters = function () {   var letter = $('#letters').find('li');   letter.each(function() {     $(this).delay(2000).fadeIn("show");   }); } $('button').on('click', showLetters); The script fades the letters in but NOT in sequence. There is s
  • JQuery splitter switching orientation

    Hi  I am using jquery splitter plugin in my project - https://plugins.jquery.com/splitter - version 0.14.0. How do I implement switching of splitter orientation from horizontal to vertical dynamically based on button click? Is there a sample implementation available ? Appreciate your help. Thanks Srikanth
  • Javascript/JQuery/AJAX to PHP & MySql LOTS for data fields individually named....

    I need advice for a new project I've completed in a couple old technologies, I want to do with HTML front end to MySql with PHP and Javascript?  My problem is the main screen looks like a spreadsheet with 19 rows and various # columns in 4 main forms.  I've designed it for PHP and individually named textboxes.  Recommnedations for retrieving 57-95 data elements to return to form w/o reloading whole form? Thanks! MtnGolfer?
  • show different table in a form

    Hello: I am a new learner. I have a structure in html: <form name="form" autocomplete="off">       <table>       <tr>             <td>Ethnicity Group:</td>             <td><select id="selectEthGroup" name="EthnicityGroup">               <option value="asian"> Asian</option>               <option value="white"> White</option>               <option value="all"> All Joint</option>               </select></td>       </tr>      </table>      <table id="AsianSNP">              <tr>          <th align="left">SNP 
  • On Page Load jQuery Calls Action a second time and White Page

    We us several libraries including jQuery, UI and Mobile in a C# MVC environment. For some reason when I load my action with jQuery included my page will load fine, then reload calling my controller action a second time, but only shows a white page. When I do not include jQuery or jQuery Mobile it works just fine, but of course no styles or functionality on the page.  I've checked everywhere and do not see jQuery being included more than once and have no idea why it's reloading. Included Scripts:
  • Parse nested JSON with JQuery

    Hi,  I'm using the following code to parse a JSON and output to a web page:   <body>             <section>       </section>     <script>         var section = document.querySelector('section');     var requestURL = 'http://localhost/working/points_data.json';     var request = new XMLHttpRequest();     request.open('GET', requestURL);     request.responseType = 'text';     request.send();     request.onload = function() {       var JsonText = request.response;       var JsonData = JSON.parse(JsonText);
  • jquery ajax in php to stop refresh the page

    When i clicked on book link he reload the page and sort the column . i want stop the reload using ajax ,,, How ? this jquery function <script> $(document).ready(function() { $( "#sorter" ).click(function() { var order_by_value = $('input[name="order_by"]').val(); if(order_by_value == "ASC"){ $('input[name="order_by"]').val("DESC"); } else { $('input[name="order_by"]').val("ASC"); } $('input[name="current"]').trigger('click'); }); }); </script>
  • JQuery Dialog showing a small icon

    Hi All, I am invoking dialog box by clicking on an image. Once dialog box gets opened, even after closing it, one small icon appearing at bottom. When i click on it, again dialog box is coming. I want to remove this small icon, how can this be achieved.. Kindly suggest Thanks, Anuj
  • While executing ajax get request, getting error.

    While Executing ajax request, getting following console error : "GET http://localhost:1879/cardimages/getimage?id=12 500 (Internal Server Error)"  I am trying to fetch image from dropdown selection in asp.net mvc : Following is AJAX code : <script type="text/javascript">     $(function () {         $("#ImageId").change(function (evt)  {             var DropDownSelectedVal=$("#ImageId :selected").val();             alert(DropDownSelectedVal);             if (DropDownSelectedVal !=null)  {        
  • Do you know how to properly reduce this code?

    I have this code to submit the form with name="search" on the change events of any of this select menus: categories, price, and range). The code is working but it doesn't seem very correct because it has some repetition. Do you know how to properly reduce the code? $(document).ready(function() {   $('select[name="categories"]').on('change', function() {     $('form[name="search"]').submit();    });     $('select[name="price"]').on('change', function() {     $('form[name="search"]').submit();    });
  • How do I return a promise from my plugin

    Hello. Ihave written a jQuery plugin and want to return a promise once it has finishedloading so that I can do some other stuff. I found a useful link here and tried to replicate the code but to no avail. Please can you help - I am pretty new to both plugins andpromises. The code I use to initiate the plugin is: The cut down version coded for the plugin is: (function() { // custom workflow class $.fn.stats = function(options) { var def = $.Deferred(); var stat; var defaults = { //my defaults go here
  • submitting a form with tabs

    Hi, The following code contains tabs linked to php pages. Each one of those tab is independant from each other and I would like to save each information independanltly. I meet the  following problem : My Form variables are empty when I check the values in the ajax call. Can someone help me solving this problem ? Here is the code  <link rel="stylesheet" href="css/jquery-ui.css">  <script src="js/jquery-1.12.4.js"></script>  <script src="js/jquery-ui.js"></script>  <?php include 'utils.php'; ?>  <form
  • Putt selected dropdown item on another text box

    I have a Dropdownlist and I want when a user select an item  from that dropdown, the selected item is put into a textbox with "new Item" append to it. Any idea using Jquery?
  • Programmatically cannot enable Tinymce editor after page load

    Hi there, In my .net MVC app, I have I'm using an editor template where I have initialized the Tinymce editor like this (function(){ tinymce.init({ selector: 'textarea', theme: 'modern', mobile: { theme: 'mobile' }, menubar: 'edit insert format table tools help', plugins: 'print preview fullpage paste searchreplace autolink directionality visualblocks visualchars fullscreen link table charmap hr toc advlist lists textcolor
  • JQuery loop display array name and value

    I am trying to build a loop where it will display like this: Company Name ABC Inc Mailing Address Springfield ZZ 12345 Phone 1 (555) 555-5555 Fax 1 (555) 555-5556 My current code is not looping for each object just displaying once. Json Encode output [{"Company Name":"ABC Inc","Mailing Address":"Springfield ZZ 12345","Phone":"1 (555) 555-5555","Fax":"1 (555) 555-5556","Email Address":"test@test.com"}] HTML Code <!-- Company Details --> <div id="company"> </div> <!-- /JS Company Details --> <script
  • Disable a lit item based on a condition.

    I am looking for a way that I can disable two list items, based on the class that is in the table, currently, I have two icons showing based on a number value. Is there a way that I can disable the Edit and Recordings list item. @if (t.IsLocked == 1) { <span class="glyphicon glyphicon-lock"></span> } else { <span class="glyphicons glyphicons-unlock"></span> } <td class="updateTableRow text-center"> <div class="dropdownContainer btn-group text-right"> <button id="@actionWorkId" type="button" class="btn
  • Jquery not working on Firefox and IE

    I have a HTML page with jquery. But it does not output in Firefox and IE. It shows result in chrome. I am not find that where is mistake.. <script type="text/javascript" src="D:\Sanjeev_data\My other Folder and Files\HTML Work\Jquery\Effects-03-04-18\script\jquery-1.11.3.min.js"></script> <script type="text/javascript"> $(document).ready(function(){ $("#before").click(function(){ $("p").before(function(n){ return "<div> This p elemenet has index "+n+"</div>"; }); }); }); body> <div> <p>This is first
  • Function expression vs IIFE

    In the first function, which is a function expression, test.init();  is not working. var test = function(){      console.log("variable inside test");      // This is a function inside another function (closure)   var init = function(){     console.log("variable inside init");   }   // returning an instance of init method will expose it to the closure.   return{     init:init   }    } test().init(); // working test.init();   // not working - WHY? But in the following function, which is an IIFE test.init(); 
  • Jquery dropdown multiple filter

    Hello looking for some help with jquery multiple filter. I have done some filter, where I can show data from select option, and hide which value not selected. But its not working properly, when I do select for 3 different options, It shows me also incorrect data. Example I have selected Non active user, and when I select user position Programmer its shows me all programmerms even they are not active, here is my script, maybe someone can help to update it?  function filterText() { var rex
  • timepicker, not working after second time ajax call..

    HI, http://fgelinas.com/code/timepicker   I am using above mentioned the timepicker. This picker, using only ajax call proceess.  Initally, the first time ajax call, the timepicker is working. The next time, is not working... May i get some help to resolve this issues. loaddata.php => parent file    loadsubdata.php => child file. <this is ajax call file> Below mentioned this code, had written in loadsubdata.php- Also included the dependent batch files $('#txtTime').timepicker({ showPeriod: true,
  • Using .load to get data from my PHP code

    Hi Everyone, I don't know if the .load is the correct function to use, please correct me if I am wrong. I don't know if the .load function triggers the PHP code to run by itself or if I need to use .load in conjunction with another function to do this? Possibly .ajax with POST??? not sure. Anyways, if I use the .load function in this way: $("#data1").load("read.php $db_data1"); will this fetch the variable $db_data1 inside read.php and place it in data1 HTML input field? The above is returning an
  • init:init

    Hi, Looking at this codepen example: Exposing a private variable inside another function could some one please explain why init(); is not working? Thanks
  • How to use animate() to change color of text vertically?

    How can i use jquerys animate()-function to change the color of a text vertically? I have a text called "EXAMPLE" which is in color black. Now i want to animate this text in the way to change the color of the EXAMPLE text vertically from bottom to top to 50%, so that the the color of the text is to 50% percent in red and 50% in black. It should be like a progressbar which animates from left ro right, but in my case it should go from bottom to top and not change the background-color, but the text-color
  • Passing Values From one page to another for Updating User Details

    Hello, I have a UI where there is datatables and all the user details are in data tables coming through API Integration using Native Ajax with Edit and Delete option. I have Add user form and i want that on clicking Edit icon In UI all the details of particular user pass in my ADD user form to update user Details .I have API for Edit user details by his ID using PUT method I am able to pass the Id in the ADD User Form URL but not able to pass values Can Anyone provide some help Here is the code:
  • datepicker - Style / format

    I am trying to include datepicker in a form.  In my form, the display is compressed, the Current date is not highlighted, and the forward, back links do not work.  I created a simple web page to test using the code on the site, this shows the same issues.  The format shown in the example [ https://jqueryui.com/datepicker/ ] would be fine. I posted my test page at  http://50.77.3.204/datepicker.html The entire page code is: <!doctype html> <html lang="en"> <head> <meta charset="utf-8"> <meta name="viewport"
  • Modal is not appearing on option selection

    I have this modal: <div class="modal fade" id="details" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">     test </div> That I want to show when the option "shows details is selected" <select id="exampleFormControlSelect1">     <option id="showDetails">Show details</option>     <option>Notify</option> </select> So I have this jquery below, but the modal dont appears. Do you know why?  $(function() {             $('#showDetails').change(function(){              
  • Disabling a single thumb on range slider

    Is there any way of disabling one of the thumbs on the range slider?
  • Next Page

  • Announcements

  • The Basics of jQuery AJAX

    A step-by-step tutorial for those new to jQuery and wanting to use AJAX in their projects. Includes valuable information about troubleshooting using the console and understanding the request / response. http://jayblanchard.net/basics_of_jquery_ajax.html
  • jQuery Conference 2010: Boston Announcement

      The jQuery Project is very excited to announce the jQuery Conference 2010: Boston on October 16-17, 2010.  The conference will be held at the Hilton Boston Logan in Boston, Massachusetts.  The best part of this announcement is that Tickets are on sale now!  This venue is the largest that the project has worked with to date (Harvard Law School in ‘07, the MIT Stata Center in ‘08 and Microsoft New England Research Center in ‘09) and we expect to sell out very quickly. A brief synopsis of some of