How to use jquery to detect the customer is using laptop or mobile to watch it.
How to use jquery to detect the customer is using laptop or mobile to watch it. the code in mobile shows wrong. it shows in laptop: I'm using php to hide this table right now, I want to use jquery to detect is using mobile, so I can change the talbe as buy price save in one row.
Screen/Form Wizard
Hi there. Sorry if Im posting on wrong session, but I didnt know where to post it. I would like to know if its possible to do something like this... 1 - You press a button and open a wizard to edit the form 2 - Click on one element (ex.: label) and change its properties. 3 - Still with wizard opened, you can click and drag the element inside its content (drag and drop) 4 - Click Apply ("Aplicar" in image), it generates a custom CSS for that element or what was customized in page. Another example
Error Chrome version 49.0.262 when select option
I have a problem with jquery version 2.1.1 I have a select like this <select id="test"> <option value="10">10</option> <option value="20" selected="selected">20</option> <option value="30">30</option> <option value="40">40</option> </select> and when I try with chrome Versión 49.0.262 $('#test option[value="30"]').attr("selected","selected"); and after that $('#test option:selected'); this return '<option value="20" selected="selected">20</option>'; but in the Versión 37.0.2062.94
Whу does
Hello! If I browse this [url=http://www.antilopagold.su/kartiny]site[/url] from my desktop Chrome and press "Добавить в корзину"(Add to cart button) for some product, the cart is filling because the comand jQuery.ajax({ type: "POST", cache: false, dataType: "json", url: window.vmSiteurl + "index.php?option=com_virtuemart&nosef=1&view=cart&task=addJS&format=json"+vmLang, data: dat }).done(... works fine. This command is placed at row 81 of /components/com_virtuemart/assets/js/vmprices.js
JQuery UI Dialog invoke external URL
down votefavorite I need to open an external URL(an .aspx) using JQuery UI Dialog, but the thing is I need to pass parameters to the url and then retrieve those parameters from the .aspx I used to use window.showmodaldialog(url,parameters) and then from the .aspx window.dialogArguments... But because Chrome deprecates "showmodaldialog" sentence, I need to replace it using JQuery UI Dialog. My code now: (Im not sure if it's ok and can't figured out how to retrieve parameters from the .aspx) HTML:
How to get the selected rows in all the pages of flexi grid.
I need to get the all selected rows data from flexi gird. Currently i'm using below logic to get the data. var data = ''; $("#gst tr td .selected").each(function(){ if (this.checked) { data+= ',' + this.value; } }); But it's only returning current page selected rows. Any help\suggestion highly appreciated. Thanks, Balu
How to get a value from listview
Hi there, I'm trying to get a value of data-name when user selects an item from listview by clicking. Nothing happens when I click on an item in listview. Here is my https://jsfiddle.net/93zht15z/ What am I doing wrong? Joe
Change time format 08:00 pm to 20:00
Hi, On my website, time will be displayed in english format am/pm. I want to use European standard 24:00h. my jquery-ui-timepicker-addon is attached, I am not sure which code line I need to reconfigure, because of 1000 lines of code. P.S. I am new on this forum. Sorry if I posted this in a wrong forum room. Thanks
How to append .button() styled checkbox input to parent form
Hello, Like the subject says... So I was "successful" in re-styling a checkbox using UI .button(). However, I suspect that this has had a peculiar side effect; if I understand correctly, the original control(s) are destroyed, and recreated. Fine, fair enough. But they are re-created outside the original form, so therefore are not included in the postback. So, ... appendTo to the rescue? Only, I try this, but it doesn't seem to work? I could be using it wrong. $(function() { var wizDiv = $("#wizardDiv");
How to make a infinite loop on an animation ?
Hi, I'm new on Jquery, I have a few bases on Javascript, but Jquery is another thing for me :) I'd like to ask some specialists about my problem, because after researches on many websites, I can't find issue to my problem. Let me explain to you : I put a script on my website (animo.js) that allow me to put some visual effects on chosen elements. The visual effect works correctly, but only one time, and I'd like to make a loop on it. You can see the element I want to make a visual effect on here :
I have a project. I want to disable the date for the cars already booked. please can you help me?
<link href="../form/jquery-ui.css" rel="stylesheet"> <script src="../form/jquery-2.2.2.js"></script> <script src="../form/jquery-ui.js"></script> <script type="text/javascript" language="javascript"> $(function() { var excludedDates = ["24-05-2014" , "30-06-2014" , "31-05-2014" ]; $.datepicker.setDefaults({defaultDate: '+1w', changeMonth: false,dateFormat: "dd-mm-yy", numberOfMonths: 1, minDate: 0, beforeShowDay: function(date) { date = $.datepicker.formatDate('dd-mm-yy',
VS2013/15 ASP.NET VMC jQuery UI migration path
Hello, I am trying to install, which involves some upgrading, from jQuery UI. I am aiming at installing the UI widgets, for button, checkbox, and other support, as painlessly as possible. I am trying to get there by installing jQuery UI Widgets: All, which seems like as sensible a bundle as any of them. Here is my NuGet output: Attempting to resolve dependency 'jQuery.UI.Widgets.Accordion (= 1.8.9)'. Attempting to resolve dependency 'jQuery.UI.Core (= 1.8.9)'. Attempting to resolve dependency 'jQuery
Elements Won't stay Selected
I have a 5 by 5 table (5 rows by 5 columns). Each row has either a class of red or blue and when the page finishes loading, all the rows with blue class have blue backgrounds and all the ones with a class of red have red backgrounds. When I hover over a row it should turn gray. Then if any row is clicked, its backgound should be set to white. I was able to get most of the fuctionalities that I needed. I was able to turn the background of any row white when clicked but once I move the mouse out
trying to make online calcucator
I'm trying to make online calcucator for my web site https://jsfiddle.net/schel4ok/p9d1p00t/ But it doesn't calculate the value. It seems that I don't understand clearly how to call function "calculation". Please correct me.
save position after drag item plz help me!!!!
well...... i'v built a code which allows people to drag items and create a new page... this is the html code: <section class="has-border"> <div style="width: 100%; height: 1000px; background-color: lightyellow;" > <span style="font-size: <%=s1 %>; color: <%=color1 %>" id="makeitmove"><%=request.getParameter("p1")%></span> <span style="font-size: <%=s2 %>; color: <%=color2 %>" id="makeitmove3"><%=request.getParameter("p2")%></span> <span style="font-size: <%=s3 %>; color: <%=color3 %>" id="makeitmove4"><%=request.getParameter("p3")%></span>
Different Results even Code is Same
Hello I am trying to copy selected values from One dropdown to another. I have total sixdropdown , three dropdown for Country,State and City and another three for Country ,State and City . i want to Copy Country to Country , State to Stateand City to City . If i execute code over console it gives fine.but if write same code to file and try to execute using function It gives only country what to do ?
Shopping Cart ... Then what?
I believe I can build a jQuery shopping cart using the samples and information on this site, but then what? How do I pass the items to a purchasing system (in this case it would be asecurecart.net)? Is it as simple as adding a form linking to the account for asecurecart with a button inside (or outside) of the cart.?
Change the option font color in datepicker
Hi, Is it possible to change the font color of the list in Month and Date option list in datepicker? Thanks.
Jquery autocomplete combobox scroll issue.
Hello everyone, I am using jquery auto complete combo box in my code with scroll bar.Issue I am facing is as below. Once page is loaded then you click on show all button.it will show all the results.Now scroll till end of result. then close the list without selecting any option i.e click anywhere outside result list. Now once again when I try to open the list by clicking show all button scroll position is set to end of list.I want it to be at top of list. Code i am using is as below. <!doctype html>
Bar at bottom and top of screen?
Hello, I'm currently working on a little Webapp as a school assignment. I copied the code here and edited it a little, however there's a small bar at the top and bottom of the window. Also, if I chance the background color it will only show in those two bars. Does anyone perhaps know what the issue might be? Thanks in advance <DOCTYPE html> <html> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <title>Naam</title> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.4.5/jquery.mobile-1.4.5.min.css"
How to use jQuery to display a specific tab on another HTML page
hello to everyone, I have an HTML "About" page with three sections - Cirricullum Vitae, Publications, and Students. Navigation tabs using jQuery functions show or hide ONLY ONE of these sections at a time, with a nice fade out/fade in transition. Cirriculum Vitae shows by default. I need to solve this problem - have an HTML link from A DIFFERENT PAGE go to the "About" page and call the "Publications" section to display first. Here is the jQuery code for the tabs. Can anybody steer me in the right
Selecting Deselecting Divs
I have several divs on my page and when I click a div I would like its background to change to yellow. Then when I click on another div, I would like its background to change to yellow and would like the background of the div that was previously clicked to change back to its original color. I thought I can solve the problem by giving the clicked div a class called highlight. Then style the highlight class with a backround color that I need. Finally when another div is clicked, remove the highlight
test questionm
test
if else statement in jquery
I have found out I could not use an if statement in Jquery (unless done with plain js instead). Do you think creating two if statements are the best practice to achieve this? $(document).ready(function() { $('#select_preferences').multiselect({ buttonText: function(options, select) { return 'Look for users that:'; }, buttonTitle: function(options, select) { var labels = []; options.each(function() {
how to display the content of an HTML table row in a jQuery dialog?
Have the following HTML code: <body> <table> <tr> <th>Marque</th> <th>Model</th> <th>Name</th> </tr> <tr> <td>HP</td> <td>G480</td> <td>PC-HP-G480</td> </tr> <tr> <td>DELL</td> <td>Latitude</td> <td>PC-Dell-Latitude</td> </tr> </table> </body> How to display in a jQuery dialog box the content of an entire row by simply clicking on this row? Example: When you click on the second row, a dialog box opens and displays: Marque: HP Model: G-480 Name: PC-HP-480 Can u send please the jquery code and the
MouseOver event with datepicker
Hello! I have to get MouseOver event for each day in datepicker, but I can't find if it is possible. Could someone help me to resolve this question? Thanks.
Syntax error
I have this error Uncaught SyntaxError: missing ) after argument list This jquery is nestled into my JS code. When I remove this JQUERY code it works fine. $(funtion (){ $.ajax({ type: 'GET', url: 'test.php', sucess: function(data){ container.innerHTML += "<div class=\"library-item-photo\"><img src=\"image-files/cover-thumb-md.php?ID=4059\" class=\"library-img\"></a></div> "; } }); });
heloo alll iam new
hi all its my first time her and i begin learn so this is my first code but he didnt work <html> <!DOCTYPE html> <html> <head> <script src="https://code.jquery.com/jquery-1.8.3.js"></script> <meta charset="utf-8"> <meta name="viewport" content="width=device-width"> <title>JS Bin</title> <script type = "text/javascript" language = "javascript"> $(document).ready(function() { var event = $.Event('click'); event.clientX = 1; event.clientY = 1; $('div').trigger(event);
Weird glitch using .tabs() in combination with htpasswd credentials in URL
Hi, i came across a weird behaviour of the jqueryUI .tabs() function in combinaction with a password protected Folder on my Server. In order for users to access this section the browser based on Chromium 47 sends the credentials in the URL:http://user:pass@page.com and due to this combination the Jquery tabs seem to load the whole page head or the complete page into the tab content for some reason. Same happens with Chrome 49 and Firefox on my Computer. I could reconstruct this behavior on the jqueryui
Extern file of jQuery 1.11.1 or 2.1.1 (and jQuery UI 1.10.4) for Closure Compiler
Any knows where to find an extern file of jQuery 1.11.1 or 2.1.1 for Closure Compiler? And for jQuery UI 1.10.4? Thank you :-)
Need to refresh page to kickstart my code
Hi guys, I'm developing a simple app via PhoneGap as a means of learning Javascript. I've got a working script, but quite often when I load the page I need to refresh it to get the script to work. For example, I have the below code (simplified) but when I load the page, initially all the "phase" DIV's are visible. Upon refresh, they work as expected. Any suggestions? I tried a number of alternative triggers to $(document).ready() to no avail: $(document).on('pagecreate', function() {
What can actually help in? (Jquery contribution)
Hi, I'm not quite sure if this is the right place to ask and if not then I apologize. But I was wanting to contribute somehow in the Jquery project somehow, so I checked out the contribution page on the site but it sort of left me lost. I have some experience in Jquery and JavaScript but i'm definitely not a whiz at it. I do have some extensive experience in CSS3 and HTML5. So I was wondering where would I be able to contribute (if at all), and if I can't contribute what should I do so that I can?
getting an error in the console (Uncaught ReferenceError: $ is not defined)
I am getting an error when trying run this script: Uncaught ReferenceError: $ is not defined <script> $(function() { $( "#slider-range" ).slider({ range: true, min: 0, max: 500, values: [ 75, 300 ], slide: function( event, ui ) { $( "#amount" ).val( "$" + ui.values[ 0 ] + " - $" + ui.values[ 1 ] ); } }); $( "#amount" ).val( "$" + $( "#slider-range" ).slider( "values", 0 ) + " - $" + $( "#slider-range" ).slider( "values", 1 ) ); });
Using Sortable, is there a way to monitor the event when an item is moved from one list to another?
Here is the demo I am looking at: http://jqueryui.com/sortable/#connect-lists I want to be alerted whenever an item is exchanged between lists. Is there a function that handles this? I have already tried this: $("html").on("dragover", function(event) { event.preventDefault(); event.stopPropagation(); $(this).addClass('dragging'); }); $("html").on("dragleave", function(event) { event.preventDefault(); event.stopPropagation(); $(this).removeClass('dragging'); }); $("html").on("drop", function(event)
How can I use jQuery to construct this data structure given user input into a form which I haven't provided the code for?
var voucherData = { VocNo: 'V123', PostedDt: '18-03-2016', TType: 'Petty Cash Voucher', RowsCount: '2', rows: [ { Account : 'Acc1', Dr : '5000', Cr : '0', Remarks : 'abc' }, { Account : 'Acc2', Dr : '0', Cr : '5000', Remarks : 'xyz' }, ] };
Change The Style On Some Elements Without Changing All Of Them
I'm working on a website where we want to change the style on some of the elements that use the .ui-state-hover class without changing the style on all the other elements that use the same class. I can easily create a new class with the styles I want. What is the best and easiest (and repeatable) way of adding that style to the specific elements without writing new jquery script? Is there someplace in the existing jquery.js files that I can specify if the element has an id of ____, then use the
Switch manipulation to show/hide div and change state of others
Hello, Could someone help me for this : Code on FiddleJS I try to do : when switch1 or switch2 is on 'Yes' (Block1 or Block2 is showed) but switch3 should be on 'No' and locked on 'No' and block3 hidden. when switch3 is on 'Yes' (Block1 and Block2 are hidden) and switch1 and switch2 turned on 'No' and locked (disabled). Thanks in advance
manually validating jquery datepicker
Hi gurus, I am a bit confused here. I have been trying to follow this thread: http://forum.jquery.com/topic/jquery-ui-datepicker-validation-plugin and the solution provided by kwood here: http://jsfiddle.net/TJA4f/ When I play around with that solution, it works fine. However, when I try to model my actual code after it, it doesn't do anything. No errors but no validations. For instance, my version of the code validates both individual dates and date ranges. However, it doesn't work for me. What
After ajax call to delete, how to append data from database
I have a MVC application that has a timer that deletes a name every 15 seconds from the table and the database. I have the deletion working correctly. However, I am stuck on figuring out how to always have 5 records displaying. I have tried to reload the table but that isn't working either. For example, I have records 1,2,3,4,5, when record 1 is deleted when the timer reaches the end of 15 seconds, then the page should display 2,3,4,5,6. (If I Need to display my MVC code i can add that.) $(document).ready(function
Combining jQuery accordion with xml loop
I'm trying to put an xml loop in a jQuery UI accordion, but it's only the first loop that gets displayed in the accordion, the rest of the loops goes outside for some reason. How can I make it work with each loop? This is the accordion script (I've taken out the xml url and foreach stuff for simplicity) $(function() { $( "#accordion" ).accordion({ heightStyle: "content", collapsible: true, active: false, activate: function( event, ui ) { if(!$.isEmptyObject(ui.newHeader.offset()))
Next Page