Cambiar value de input
Hola, al principio tengo esto: <input type = "button" id = "btnChangeStylePage" value = "Tema oscuro"> Pero más tarde cuando hago clic en javascript para cambiar el valor, y no puedo hacerlo con .attr () o .val (). ¡Saludos!
css transition updated with ajax call
I would like to ask help regarding a CSS transition which works, but is not working when I update the page through a ajax recall. I try to explain: I defined a compass CSS object and a arrow of this compass which should be oriented in the compass as the wind does (wind direction is updated every second). I created a CSS object and the arrow moves to the initial position slowly with the transition effect. Than every seconds there is an update of the wind data and I use a Ajax call to update the page.
Get element from parameter in function
Hi Everyone, I have to be missing something pretty obvious, but I am out of ideas. I am trying to get the tr from a table (#q34). I am (attempting) to pass the table name as a parameter in to a function. I could be doing a number of things incorrectly as I am a complete noob. here I am trying to pass the parameter #q34: $('.pCardUsedReg input').on('change', function(){ checkPCardCheck("#q34"); Here I trying to use the parameter as if it was text: var checkPCardCheck = function(x){ var totalRows
navbar class active impresice
Hi, The navbar (bootstrap) holds several links. When clicking on a link the page does! scroll to the right location but the upper <section> link remains active. I have to scroll down another ~100px manually to have the correct (next link) active. I have tried all sorts of things, like moving the id up/down the section, or set and .anchor with padding/margin-top. But nothing worked. How do I fix this? Cheerz!
how to add multiple header in jspdf plugin.
Hello Developer, I need help in generating pdf using js pdf. As per below url i able to generate the pdf, but in the example of this output pdf has only one header as "Testing Report" on the left side. i am also looking one more header at right side with Date:__________. So my header will look like below. Testing report Date:_____________________________ rest of the table data will come here. below is codepenurl: fiddle for jspdf Can any
setting different position using jqurry UI dialog
hi all I am trying hard to set dynamic position of jquery ui dialog. As of now I am able to create multiple dialog window but all are on top of each other. I need to change its position whenever I click on each button It can be seen in http://fiddle.jshell.net/q2cU2/1/
Reusing Same HTML5 Code In JQueryMobile
Hello Code Works From HTML docMy existing upload.html doc when clicking a button points to the upload.php doc which successfully inserts photos into a database. <form action="upload5.php" method="post" enctype="multipart/form-data"> <input type="file" name="vfImageName" /> <br> <input type="text" name="photo_cost" /> <input type="submit" name="vButtonSubmit" value="Click To Upload" /> </form> However, Same Code Using JQueryMobile Button Does Not Work I tried inserting
change checked not working
Hi ! my actual code is not working, the checkbox is not checked as expected HTML <fieldset id="jform_featured" class="btn-group btn-group-yesno radio"> <input type="radio" id="jform_featured0" name="jform[featured]" value="1"> <label for="jform_featured0" class="btn">Yes</label> <input type="radio" id="jform_featured1" name="jform[featured]" value="0" checked="checked"> <label for="jform_featured1" class="btn active btn-danger">No</label> </fieldset> JQuery <script> jQuery(function ($) { $(document).ready(function()
How to trigger an event when bootstrap modal closes
Hello, I want to reset value when modal pop up close. I am able to reset value, when click on cancel button and cross icon in modal pop up but how can I reset value when click outside modal click? How to trigger an event when bootstrap modal closes? hidden.bs.modal and hide.bs.modal not working for me. Thanks.
How to load portlets without reloading the page?
I'm doing a MVC project using a Metronic template. When I click on a menu I want to load the portlet correctly with the data that goes inside, without reloading the page. Now I have an index.php which when opening the first time loads a menu and in the central part this empty, until here well.When I click on the Clients to create a portlet of clients with their data and when I click on New Client create another portlet with its data. This part I get through an ajax that I have created and that I
Run code block only to specific pathname type
I am writing a userscript I have a working code block I want to run ONLY on pages that match the following address: https://www.example.org/administrator/products/1971/edit where 1971 can be any number I assume I need to do a regEx expression. e.g. window.location.href.match(/(.*)(\/\d*)/)[1] I apologise that this is a general js question. I tend to get abuse on stackoverflow so I avoid it, love jQuery and any jQuery based solution would be welcome.
Jquery datepicker inside gridview indide update panel. Need maxdate of datepicker as the date in another column of that same gridview
I'm new to jquery. I have a gridview which contain two date columns. In second column There is datepicker textbox in itemtemplate. I need to set maxdate of datepicker as the date loaded in the first column. Now it's working as follows. First row. First column date is 30-dec-2017. And 2nd column maxdate of datepicker is same as 30-dec-2017. But second row working wrongly. In second row , fisrt column date is 29-dec but second column maxdate od datepickeris 30-dec. All rows datepicker maxdate shows
How To convert SharePoint 2013 New/Edit form to Accordion
Hi All, SharePoint forms is in table form,Can anyone having any jquery plugin/code to convert SharePoint 2013 forms into accordion?
update ajax on browsers back & refresh button is trigger
down votefavorite Its my first web application building with jsp , jstl using ajax as to make music player play throughout the site. i have many ajax req in single page . when i click on that its works all fine but when ever i refresh it takes me to blank content page in this code "Djpage.jsp" with out any content as requested in ajax i know as for url it will show but i researched a lot and tried but its not working and when i click button it does not respond only url is changed . Need help and
Jquery Conflict With Content Security Policy
As we all know when using jquery or jquery ui especially, it often put an inline style in element's tag, for the simplest example; when we implement .hide() on element, it put an inline style="display:none;" on the element. On the other hand Content Security Policy Best practice dictates that we must not allow for 'unsafe-inline' in our policy. How to get workaround for this problem? How can we use jquery, without white listing 'unsafe-inline' in style-src?
Help needed on jQuery Vulnerability
Hello All, I have received a Vulnerability point from our security team. Details are as below. Please help on how to fix. Vulnerability: Vulnerable Javascript Library (jQuery) Affected URL: https://sitename/js/jquery-1.7.2.min.js Description: A cross-site scripting (XSS) flaw was found in the way jQuery, a fast, small, and feature-richJavaScript library, performed sanitization of location.hash and <tag> arguments in certaincircumstances. Impact: A malicious user can provide a specially-crafted web
Populate Object Values in HTML Span
I am populating a span based on the values from an object. var myData =[ { "ID":1417, "BF":74, "IL":17, "Tw":17 }, { "ID":1415, "BF":63, "IL":7, "Tw":19 }, { "ID":1414, "BF":297, "IL":2, "Tw":30 } ] I want to read values from this JavaScript object and populate it in the HTML given in the demo https://jsfiddle.net/qwejzkgs/3/ There are several such parent divs on the page, each with a unique id. I want to populate the span with the respective data from the object. How do I access the span inside
download for jquery UI 1.12 minified
To upgrade my web form 2010 .net application that currently uses the oldest version of jquery ui, I would like to obtain the latest code for jquery-ui-1.12.1.custom.min.js. I basically would like to obtain the jquery UI version 1.12.1 custom that obtains the minified version. The best I can find on the internet is the following download url: https://jqueryui.com/download/all/ . This is fine but the download contains more files that I do not need. Do I need the jquery-ui-1.12.1/jquery-ui.min.js file
Script tags not loading after ajax call
I'm using the Ajaxify/history.js but I have a serious issue. After it loads content through ajax, or simply when I change page with pushState(), scripts are not loaded. myscript.js $(document).ready(function() { $("div").click(function() { // this works everytime alert("Test"); }); $(".mydiv").click(function() // this only works on the first real reload (F5) but after a page change with pushstate/ajaxify/history it does not work anymore. { alert("Test"); }); }); I'm starting to suspect, because the
using operator
hi, please anyone give an idea. how to write if condition using OR operator i.e the given value may or may not be positive
Why debug is not properly working in jquery validation plugin?
when I used debug true in this script warning show in console that : Uncaught TypeError: form.submit is not a function at a.validator.submitHandler() and When i do not use debug method all are working fine.. help me guzz how to use debug true method properly... i am bigginer in Coding... my Code Are below: HTML CODE: <form action="test.php" method="GET" role="form" id="signupForm"> <legend>Demo Form Validation</legend> <div class="form-group"> <input type="text" class="form-control"
JQuery Tabs Shows As Bullet Points in IE 11
I have a MVC website using JQuery 1.12 to create tabs. The website shows correct layout for all machines except one machine. That machine shows tabs as bullet points on screen. Even on JQuery's website, the tabs demo shows bullet points too. Please see the attached screenshot. That machine has IE 11 on it. I am thinking it might be some settings issue? Any suggestions? Thanks, David
#page anchor links not all working, only some???
Hi All, I am using JQuery Mobile viewing it on my Laptop/Desktop. My page anchors were working, but now only a few of the links are working. When i change the #name of link to the page name that are working, it works. I don't know what could be interfering with page anchor link call? Thanks in advance. Mike B.
Load JSON data into HTML table
Below is my AJAX call response JSON --- jsonObj = { "name": "Top 5 Retail Sales - May 2017 - US", "rows": [ "{\"dealershipName\":\"VIJAY ROAD EQUIPMENT, INC.\",\"numberofUnits\":\"20\",\"salesRepName\":\"DAVE HOLZWARTH\"}", "{\"dealershipName\":\"GRAND TRAVERSE DIESEL SERVICE, INC.\",\"numberofUnits\":\"13\",\"salesRepName\":\"DANIEL WALTERS\"}", "{\"dealershipName\":\"BUCKEYE WESTERN STAR\",\"numberofUnits\":\"12\",\"salesRepName\":\"BRANDON CREEK\"}", "{\"dealershipName\":\"FREIGHTLINER
jquery autocomplete ui matched text color
Hi, I am using the following for jquery autocomplete search code. Can anyone help in highlighting the matched text with a different color as someone types the letters? <link href="https://fonts.googleapis.com/css?family=Ubuntu" rel="stylesheet"> <script src="//code.jquery.com/jquery-1.10.2.js"></script> <script> $(function() { $( "#search-box" ).autocomplete({ source: 'livesearch.php'
Start slider transition on selected slide
I'm working on a simple banner slider, so it rotates automatically and I have dot navigation to display or show the selected banner slider, my problem is I cant achieve my goal to let the transition start from the selected image. I search some codes in the internet, but no luck. I hope you understand me. Thanks Sample Code
Control radio button group using checkbox?
I have one checkbox and four radio buttons.Initially if user select checkbox dynamically first radio button get checked and also display value.After that all radio buttons switch with each other and display value.Whatever radio buttons checked get uncheck ,If user unselect the checkbox. This work like parent and child relation,checkbox as parent and radio buttons as child. My code is working but the problem is that,if dynamically particulate radio button is selected then it will not unselect and
Jquery not running
Hello, I am relatively new to Jquery and Javascript. I am trying to manipulate a plugin into what I want it to be on wordpress. I have my php and html the way I think I want it. I have a small bit of code for Jquery that I have been trying to get to do something but for some reason, it won't run. any idea why this would be? Here is the html I am trying to change: echo "<table class='timecard1' ><caption> Week 1</caption><tr align='center'><tr align='center'><td></td> <tr><td>{$this->int_to_weekday($options['week_starts'],
Get text inside Div with others elements
Hi all. Thanks for your attention and help. <div data-filter="*" class="cbp-filter-item-active cbp-filter-item"> Todas <div class="cbp-filter-counter">12</div> </div> I use .find('div:eq(0)').text() I get all text inside this div like "Todas" and "12" but I want select or get only "Todas" Are there a simple way or I need to use a split metthod with new lines? thanks
tabs widget showing content from all tabs
Using JQM 1.4.5 with JQ 2.1.4 I have a really basic tab control, it has three divs and no matter how much clicking I do on the tab/navbar portion the content of all three divs is constantly displayed. JQM doesn't seem to be adding any classes to/from the content divs. Am I missing something here? (Well obviously I am, but what? My includes are: <link rel="stylesheet" type="text/css" href="css/jquery.mobile.flatui.css" /> <script src="jquery.mobile/jquery-2.1.4.min.js"></script> <script src="jquery.mobile/jquery.mobile-1.4.5.min.js"></script>
Scale (or zoom?) on Phonegap
Hello; I have a jquery-mobile interface with some text, buttons, combo boxes, check buttons, tables and so; it looks prety well on ios or phone devices, with Firefox, Chrome, Samsung Explorer, and Safari; but when I run it with Phonegap, visual components are all much bigger. It seems all those browsers are doing a different zoop setting that makes things to fit much better. I build and tested this project using always the default settings for testing in all the browsers, and the app looks very
Selector Troubles
Howdy all. Can't seem to get my mind wrapped around this one. I have a webpage built with Bootstrap CSS (so lots of nested DIVs). What I'm trying to do is to show the user some information that is provided by the database, and to allow them to one-click copy that information into an adjacent field. I'm thinking this should be easy, however no matter how I build the selector, I can't get it to copy the information into the field. It's too complicated to put here, so I've built a fiddle to illustrate
Why I can't pass variable in daterangepicker?
Hello! I have daterangepicker on my website: $('#first_range').daterangepicker({ startDate: moment(Elastic.periods[".second"].range["Purchase Date/Time"].gte, "YYYY-MM-DD"), endDate: moment(Elastic.periods[".second"].range["Purchase Date/Time"].lte, "YYYY-MM-DD"), ranges: rang, "locale": datelink }, cb1); cb1(start, end);I'm trying to translate this datepicker to other languages. Due to this I created json files with translations(rang and datelink). Doing this way causes error: jQuery.Deferred exception:
How to accesss modal jquery dialog after it is generated?
I have a webpage which uses jQuery UI Dialog to generate a modal form. The jQuery js code itself is generated by a database. So I have a "double-dynamically-generated" form and no access to the sourcecode. So how can I access elements of this form after they are generated? My idea was to use on() or delegate(), but my form elements should have already changed when the form is loaded. Not on 'click' or something else.
Intercept response that have header
I would like to intercept all responses from jquery and check if a http header is present. If it is, i just want to do another request ( that hopefully wont trigger the jquery http interceptor somehow. )
Block UI Exceptions
Is it possible to exclude certain postbacks from BlockUI? I have a treeview on a page that postback when the user clocks but it looks odd and I would like to exclude it.
Jquery draggable columns issue
Hi Team, I am new to jQuery and trying to use the draggable feature into my Salesforce VF page which is similar to HTML. The VF page table has around 20 columns approx and when the page get loaded it displays only first 15 or something and in order to acces further columns we need to use the scroll bar. The issue is when I try to drag the columns which are hidden using the scroll bar. jQuery would not recognize those columns and somehow picks and traverses back from only those columns which were
how to detect when i change a tab?
hi i have this script for make a list of tabs there is a event for detect when the user change of tab ? <script> $(function () { $("#tabss").tabs(); }); </script>
How to assign the dynamic id of the div using create element
I need to assign the dynamic id of the div, here is my code; $('#btClickMe').click(function () { var dynamic_div = $(document.createElement('div1')).css({ border: '1px solid', position: 'absolute', left: '350',//element_pos1, top: 110,// $('#ctl00_BodyContent_divResize').height() + 20, width: '25', height: '25', url: '', padding: '2', margin: '50', });
Building a form with JSON and Ajax
Hi, Looking at this example, I managed to create a drop-down menu which gets its content from a JSON file: Building a from using JSON However, I'm sure there is a better way to achieve this. Could you please show me how would you solve this? Thank you
Next Page