• radio button cheched problem

    helo sir i want to tring a quiz app in quiz when i click radio button it checked or when go to next or previous button it show unchecked , i want that when i go next or previos button it show  checked . please help my code bellow view_exam.php <?php //view_exam.php include('master/Examination.php'); $exam = new Examination; $exam->user_session_private(); include('header.php'); $exam_id = ''; $exam_status = ''; $remaining_minutes = ''; if(isset($_GET['code'])) {     $exam_id = $exam->Get_exam_id($_GET["code"]);
  • I add elements in div with value of input on keypress enter and I want to delete that value by click and here is the problem

    here is my code:https://jsfiddle.net/Masoud0X0/d09xkb51/3/ Thanks 
  • .map() argument ordering should be switched

    $.map(fooArray, callback) passes arguments into the callback with the correct ordering: (value, index) $(".foo").map(callback) passes arguments into the callback with the wrong ordering: (index, value) I believe the original reason why the second one passes index first is because it is expected that the developer will just use "this" to access the element. Now that es6 lamda style functionals are being used more and more, "this" is no longer an option.  Code such as the code below doesn't work because
  • browserWidth() and height(), compatible for desktops and smartphones (fullscreen apps)

    a gift back to the jQuery developers and community :) rename it and use it as you please. feel free to include this in the jQuery core; i think it's needed there. what's also needed is a color animation for rgba(0,0,0,0.5) to rgba(255,255,255,1) for instance. you forgot to include that :) moderators of this forum,  - i'm not ungrateful - i'm an opensource developer who uses a forum like this to feed back vital info to the developers of jQuery - i'm not here to advertise my product, i simply want
  • Evolve jQuery to be a framework and not just a library

    I know this is a long shot but it seems that jQuery has been left behind by frameworks (Angular, React, Vue). Though I know that jQuery is a library but do you guys have any plans to make it so that it's going to evolve and compete against those? I'm just throwing this out there
  • Contribution to jquery-ui slider widget [version 1.12.1 mod]

    Hello guys, I would like to contribute to slider widget/control (currently working on it, forked jquery-ui in GitHub). Planning the following changes: - dynamic handle size (fixed axis relative to orientation)(not css-based). - strict option, when handles doesnt move beyong the scale. - internal handle type, when handles positioned inside the slider scale. how do you find these features? are they acceptable? sorry for language, im not native to English. I will create codepen demonstration if it's
  • using autocomplete on cloned elements

    Hi Guys, Had an issue that I could never find the correct solution online for so thought I would post one up in case it would ever help anyone. So basically I wanted to add the same autocomplete function to multiple cloned elements, but as anyone that has tried this before knows, there are tonnes of issues meaning it never works without complications. I've came up with a few solutions, (new ids, add to each new id) but by far my favorite is shown below: $("[name='nameofelement']") .focus(function(){
  • Is there a way to programmatically change the range slider's value without triggering the change event?

    I know that there are other posts on this subject that seemed to indicate that this functionality wasn't necessary, but I have a "use-case" which demonstrates the need to be able to programmatically change a slider's value property and control whether or not the change event is triggered. My form has a single value range slider that has two buttons before slider and two buttons after the slider, that control the position of the slider's handle, specifically:   A 'jump slider's handle to the left
  • Disapointed with new Button icons

    Been really busy and was just tasked with looking into upgrading to the latest jquery ui, however I am very disappointed with the button icons as functionality has been removed. We have developed a few web apps, and many of them have buttons with an icon on the left and a drop down icon on the right.  With 1.12 it seems that a button can now only have 1 icon, basically removing functionality. Why not leave the icons option that consists of an object with icon and icon_position, enabling multiple
  • When will the JQuery UI sortable enabled the 2 or more column span portlets?

    When will the JQuery UI sortable enabled the 2 or more column span portlets?
  • JSCover - JavaScript Code Coverage

    Hi, I've developed JSCover (based on JSCoverage) and was wondering if anyone from JQuery is interested in assisting in integrating it with JQuery. I'm looking at this anyway (as I'm interested in improving the quality), but help from your side would be great. I'm running the 1.8.3 branch with Mongoose, but always get 4 failures. Running through JSCover results in a few more failures (I'd like help tracking down the cause of all failures), but I think the result are still useful. To run in proxy mode
  • Rename .closest()

    I can't count the number of StackOverflow questions I've seen where they misused .closest(), thinking it would find the nearest sibling, cousin, etc. element that matches a selector. I think I've even seen it in places where .find() is what they want. This expectation matches the normal meaning of the function name, since closeness is not usually restricted to a particular direction. I suggest that it be renamed to something like .closestParent(), to make it clearer that it only searches through
  • Two ideas: Close on Escape and something between Close and Destroy

    Hi All. First of all - thanks for the UI. It helps a lot.... ...and now: some ideas from usage site as application programmer. ...during programming a more complex web site (with some modal dialogs overlayed - version 1.11) insighte the website the handling with close, destroy, close on escape, cancel and relaod seems not quite optimal for me. With some tricks, I have no need for an close on escape event but it would be nice not just switch close on escape on or off. It would help, if it was possible
  • testDone should get assert message

    According to the documentation, the testDone() callback does not receive the assertion message.  IE: assert.ok(false, "Here is important debugging information you need to fix this test"); By experimentation, I see that there's actually an additional field, "assertions" which contains the info I need.  So the documentation for that callback could use an update.
  • How to make the perfect horizontal menu

    Here's a simple way to make a menu like this: CSS code: #menu {   overflow : hidden;   width : 500px; } #menu > li {   float : left;   width : 100px !important; } #menu .ui-menu {   width : 200px; } JS code: var menu = "#menu"; var position = {my: "left top", at: "left bottom"}; $(menu).menu({     position: position,     blur: function() {         $(this).menu("option", "position", position);     },     focus: function(e, ui) {         if ($(menu).get(0) !== $(ui).get(0).item.parent().get(0)) {  
  • faster use of jquery-ui via class iteration

    I found it a bit of a hassle to "register" every div that I want to use with a jquery-ui widget. So I wrote a little bit of code. Basically, every widget type gets a class name.  For example: if you have multiple buttons you dont have to write " $('#id1".button(); $('#id2".button(); $('#id3".button(); etc anymore. You just add the class "btn" to any div in your html code and my code does the rest.  <div class="btn"> <button onlick="">Button</button>  <button onlick="">Button</button></div> Widgets
  • Add optional data parameter to each function

    I've come across situations where it would be nice to pass some data to the each function. As in $(myQuery).each(myFunction, myData) which would invoke myFunction(index, element, myData) for each element. A more specific example might be:  $('#recordsTable tr').each(myHighlightFunction, arrayOfSelectedIds) where myHighlightFunction would examine each tr for some identifying aspect and change the background color for any row that matched a value in the array Right now, there are at least five ways
  • Why not ? A pin scale display on the sliderBar ? & With (in the future) a customizable pins positionning ?

    Hi All, Today I'll would like to propose to you something on the slidebar. (Look at the snashot under) You customize your pin(s) scale showing with a reference to a jQuery plugin icon name (or not for no display) I'm under a work draft yet. Because my purpose is to propose a full customize setting for the pins positionning (for example : 0% 25% 75% 100% 200% 300% (or other constant values, not in percent...) in purpose for example to set a zoom/xzoom interface or for full others objectives .. ) Source
  • Resizable() grip display customizable (?)

    Hi All, Always with the resizable() command. If I don't want to see the "SE" handle ? ==>  $(myResizerObject).mouseover(function(evt){ $(this.getElementsByClassName('ui-resizable-se')).css({display: 'none'}); }) Not smart ... Why not a "grip" option with the same "philosophy" of "handle" option for the accepted values ? like this : GRIP:  "n, e, s, w, ne, se, sw, nw, all" And the combination between "grip" and "autoHide" could give more ... @+
  • jQuery properties that mimic DOM properties

    One of the most common errors I see among new jQuery programmers is trying to access or assign DOM properties on jQuery objects. For instance, today on StackOverflow I saw this: $('input', this).checked = true; Except in the cases where the DOM property has the same name as a jQuery method, it seems like it should be possible to implement this using Javascript getters and setters.
  • JQUERY Autocomplete with multiple sources

    Hi, Is there a way to specify multiple sources (2 ajax requests) for JQUERY AutoComplete plugin? Both requests should bind and show the results when they return from the server asynchronously. $(".autocomplete").autocomplete({         source: function (request, res) {             request 1 : $.ajax({}); //show the results in autocomplete when results are returned             request 2 : $.ajax({}); //show the results in autocomplete when results are returned             ..             ..            
  • Turn off spellcheck!

    In IOS and OS X Safari (not others), when I type compound words that can be broken into 2 or more real words, Safari adds spaces between them. You can fix it by added spellcheck="false" to the <body> of the iframe. <body class="ze_body" spellcheck="false">The word that caused the problem was tabsactivate that turned into tabs activate. JΛ̊KE
  • Get coordinate relative to other elements whith css transform involved

    I'm thinking about a way to get coordinate of an element relative to another element when there is transform applied in between (either directly on those elements or somewhere on the dom tree). We can easily convert coordinate with the used of getComputedStyle().transform which return the matrix to apply. I have a running code doing it. We could do this way : All function would take the first element.  - jQuery.toPageCoordinate() would return a function(x,y) to convert coordinate relative to element
  • datepicker accessibility extension: voice-over compatibility

    Although there are proposed keyboard accessibility changes for datepicker here: http://wiki.jqueryui.com/w/page/12137778/Datepicker There is no mention of voice-over support, Is it planned? I am considering contributing to the datepicker module hosted on Github: https://github.com/jquery/jquery-ui/tree/datepicker Thanks, Omar
  • jquery map stuff and gps theme for pulling/putting lat long in n email & text?

    I am android guy, but I want jquery & jmobile theme for this:  map theme for jquery?
  • Add ability to move selector boxes (month/year) to any displayed month

    Current situation: The selector boxes for month/year appear on the first month displayed in a multi-month layout, however if you have the active month set other than the first position, the selection of months is non-intuitive. The month you select in the selectors is not the month that then appears below the selectors, leading to user confusion when selecting dates. Example: with option showCurrentAtPos = 1 [October] ------------ [November] ----------- [December] ^ Selector here       ^ Chosen month     
  • Feedback for Vaadin Charts 3.0 preview

    I'd like some feedback on this preview version of Web Component enabled charting library: Vaadin Charts 3.0 https://vaadin.com/charts-for-jquery Please try it out and tell me what you think about it. I work for Vaadin and we are extending our open source Java and Web Components offerings to commercial products including this very versatile chart library. You can get an evaluation license for free. The development is still ongoing and feedback is greatly appreciated.
  • building an MVC framework

    Trying to stir some interest and find others who might be passionate about having an SPA framework tailored to usage with jQuery. I've been working very hard on this: https://github.com/r3wt/jqMVC It doesn't chain you to anything. You are free to implement your own Views and Models libraries, so long as they conform to the interface. I'm looking for someone who knows Qunit.
  • .attr should allow function that returns multiple attributes

    .attr should allow the following type of use: $(selector).attr(function() {   return {     attr1: value1,     attr2: value2,     ... }); Currently a function can only be used with the two-argument form, to compute a single attribute.
  • Possibility to select layout

    My idea is to let the website developer freely set the layout of the elements of jquery-ui, like by example menu (for now it's possible to do only vertical ones and there should be a possibility to make it also horonizontal). This option is important in site navigation development. Without it, there would be need to rewrite whole site to change it's layout only to fit the menu (with would be time critical)
  • Timepicker

    This is an idea and a completed project. I developed a timepicker last year using a modification of the code from the JQuery datepicker (version 1.8.16). This could be updated and added as a potential widget into the latest version of JQuery UI (which is why it is an idea). The timepicker differs from others currently available as you can see below. Another idea is to just show the five minute increments under "minute", and then add a "show all" or "more" button for specific times. Some of the helper
  • Ajax-only build - without selector module (ideal as a lightweight ajax only build for mobile devices)

    Right now, when doing a special jquery build, you must always include the selector module, no matter what the build is: "Any module may be excluded except for  core , and  selector . To exclude a module, pass its path relative to the  src  folder (without the  .js  extension)." There seems to be a common desire out there to only use the ajax part of the jquery library: http://stackoverflow.com/questions/4132163/is-there-only-ajax-part-of-jquery Right now, this is semi possible, if you build jquery
  • How about having method like getAllElementsInArea(x,y,width,height)

    For method like  getElementsAtPosition(x,y)  which return us DOM elements of specific positions. Instead  of a specific location can we have given area (may be a rectangle or circle radius from x,y). So it should look something like getAllElementsInArea(x,y,width,height) . To get elements from screen from a given area.
  • parent and parents DOM selector method names

    Why do we use the  parent  method to select the immediate parent of a DOM object and parents to select its ancestors? This implies that there can be parallel html tags that act as a parent of a html tag.  Which is not the case unless I am missing something. Why not use parent and ancestor instead?
  • Async Improvement to check if it's completed from external code

    Hi, I'd like to propose a change to the QUnit async function that I found useful.  Specifically testing if another async function has not completed this could be a cause for issues.  Therefore this change proposes a way to check for this by attaching a state variable to the returning function: // Increment this Test's semaphore counter, then return a single-use function that // decrements that counter a maximum of once. async: function() { var test = this.test, popped = false; test.semaphore += 1;
  • Flotting Logout Button

    Can anybody help me to crate a flotting Logout button (possible to move using cursor) using JQ? See the image..
  • Feature Request: Public Event Listener List

    Hello, This is a very old topic, however, I would like to blow off the dust and start a fresh discussion on the matter. I will start with a story of a front end developer, lets call him Bob. One day Bob was wondering around in the magical jQuery Forrest when he had a nice little idea for a plugin. Bob wanted to create a simple/customizable way to ask a user for confirmation before the default events take place on an object. Here is a real world scenario. We have a "Delete Button" ... it has a click
  • Breaking item out of expandable list based on search query

    Hello, I'm working on an expandable list list that breaks out certain items if they meet the search query. By break out, I mean they get listed below the bar of the collapsed list. Like this. +Click for full application list       Known use:       -Test item 2 +Click for full application list (expanded example)       -Test item 1       -Test item 2       -Test item 3       Known use:       -Test item 2 I hope that explains that well enough. When I mean break out, the whole UL for that search result
  • an evolution of jQuery tabs? a new way of visualizing multiple "pages"?

    I use jQuery tabs often, and really like the easy transformation they offer, from a list of divs to a set of visually separate tabs in one window. I wonder if anyone has experimented with an all-in-one-view (page) rendering of a list of divs, in which  in the summary view, each div is rendered equally scaled down, as a thumbnail,  perhaps with a readable title superimposed upon selection (and equivalent to raising the selected table) the selected div expands to take most of the page; the unselected
  • Applying styles to :before and :after elements

    This seems like something that should be fairly trivial: $('.foo:before').css('margin-top', '50px'); But currently does not work. There's no reason this coulnd't be implemented in this way: 1) Create a stylesheet on the page 2) Add a style for .foo:before and use the css rules provided
  • 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