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
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
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() {
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> "; } }); });
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 :-)
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 ) ); });
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' }, ] };
Implement jQuery AutoComplete TextBox from database in c#
Hi there, hope in your help. I work in ASP.NET c# and MySQL database. I need to make the AutoComplete TextBox from database using AJAX and I have tried this tutorial on the web. http://www.aspsnippets.com/Articles/Implement-jQuery-AutoComplete-TextBox-from-database-using-AJAX-PageMethods-in-ASPNet.aspx But I have a problem when the name consists of multiple words, e.g. : name: Plane working on the search name: Planner of not working because after PostBack Page the selected value on list in the TextBox is
Best way to chain multiple dependant AJAX calls where some calls are optional (depending on the result of previous AJAX request)
I have 3 dependant select lists - "Component", "Modifer" and "Defect Type". When the user changes the selected "Component" I need to updated the items in the "Modifier" select list and then depending on how many modifiers are returned I may or may not need to update the items in the "Defect Type" select list. Pseudo code: 1. Display loading panel 2. Make an AJAX call to find all modifiers for the selected component 3. If the number of modifiers returned from step 2) is greater than 0 then Add
what is ASI please?
http://contribute.jquery.org/style-guide/js/ i can't get the meaning of some thing in this article Semicolons Use them. Never rely on ASI. what is ASI please?
jquery timepicker and datepicker
Hi, Did you know there are sites that use jquery timepicker or datepicker? Can you provide information about the use? Thanks.
How to Add Animation to Translated Box in Merged Table Column on Scrooll
Can you please take a look at This Demo and let me know how I can add animation to the #map to always see it on view port while the table is in the view port? (some thing like sticky notes) As you can see the position of the #map is hard coded in -100px at: transform: rotate(-90deg) translate(-100px, -30px); but what I need to do is keeping the #map in view port until the table still presenting on scroll down or up $(function() { }); @import url("https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css");
is it a public API the function select?
window.alert($("#btn").select) i found that there is a function called select belong to the jQuery instance is it a public API?
Adding totals of values given in dynamic rows populated from database
I have a dynamic table, where Column A is populated dynamically from the database and one column is an input fields for ratings. The code is in the link below : Click here to view the code What I am trying to do : All the data elements should add up and give the sub-total in the Sub-Total field present on top of the fields. The sub-totals should then add up and and give a grand total. I've attached a photo for better understanding. NB : The sub-total fields are dynamic, and can change the row number
how to determine whether a element has bind a callback function for a particular event?
var btn=$("#tool_btn"); btn.on... btn.on... now i want to detect whether or not this element have been bind a callback for a particular event such as "click" how to get it?
dynamic tab selecting
I have four tabs. When the user clicks on one tab, all of the tabs are changed via some html code. I notice that I loose my listener doing this because I get no actions on the second click. Here is some of my code: var profileTabSelected = '<ul><li class="tab" id="profile"></li><li class="tab" id="stats"></li><li class="tab tab3" id="login"></li><li class="tab activeTab" ></li></ul>'; I change the html of the nav bar by this: $("#nav").html(profileTabSelected ); Please advise on how I can allow
Saving User's Drag & Drop jQuery on a Website
Hello! I'm wanting to know how to save a User's changes on a website. More specifically how to save a User's edit on their profile. Kind of like how "Wix" allows the user to move elements using jQuery and then save their website.
Loading database value into a form.
I want to load database values in webform text boxes using jquery on the page load. After loading will update values and save to database. I have written a sample code below. $(document).ready(function () getting called multiple times. Can some body help me with sample code. $(document).ready(function () { $.ajax({ type: "POST", url: "Default.aspx/GetUser", data: "{}", dataType: "json", contentType: "application/json;
Tag <button> make a page autorefresh in ie10 edge mode
Hi, sorry for my english.... I've a big problem: I used this: <button onclick="cerca_pratiche()">CERCA</button> function cerca_pratiche() { // do nothing } to make a simply style for commands on the page (show or hide tables). In ie8 everything ok. In ie 10 when I click on the button start a page refresh. I'm using jquery-ui-1.11.3/jquery-1.10.2.js Can anyone help me? I've put lot of this button and rewrite code is a big problem (and waste lot of time :( ) Thankssss Stefano
Jquery and Vbulletin
Hi everyone, i have been wandering around looking for a tut that explains to me how to make a jquery button which when i hover the mouse on; it displays "the subforums" in my vbulletin forum... i'll be so grateful if you help me by any means..!
Getting JSON data using $.post method
Hi, I'm learning Ajax. Right now I'm trying to catch some data from a json file and show them using $.post. However following code is not working. The same code works if I use $.getJSON instead of $.post. I know how to bring it to work with $.ajax but I'm keen to know why it doesn't work with $.post ? HTML: <main role="main"> <button class="btn">Show Data</button> <div id="content"></div> </main> JSON (data.josn) [ { "name":"Barot Bellingham", "shortname":"Barot_Bellingham",
Processing Ajax JSON Return Array
I have over 50 scripts where I use an Ajax call to populate a DataTable. All work great. Now I have the need to use an Ajax call that will access a mySQL database and return information to simply display on a page via Javascript. Here is my Ajax code... <?php $fam_ID = 1; $output = array( "sEcho" => 1, "iTotalRecords" => 100, "iTotalDisplayRecords" => 100, "aaData" => array() ); try { if ( $fam_ID != 0 ) { $name_short = "SHORT NAME";; $name_long = "LONG NAME"; $submitter = "SUBMITTER";
chang jquery 1.9 to 1.11
hi, my script works with jquery 1.9 fine but now i have to update to 1.1. now i get a errot with this code: $('#temperatur').load('/Netatmo/cached_temperature.txt'); i get the error: "SCRIPT5007: Object expected" what do i Need to Change? thanks for your help.
Show textarea that share the same parent
I'm trying to get the textarea that shares the same parent as the selected option to show, but all the textareas show when their own option is not selected. Any suggestion on how I can solve this. My code looks like bellow: $('#snitchBox').each(function (index, value){ $(document).ready(function () { $("#snitchBox").hide(); $('select#reportReason').on('change', function() { if ($(this).val() === 'Other') {
Trouble with jquery or not
Hello! I have installed on the website jquery animated backgrounds and after that there was a problem. In my header section the following lines appeared: <script type="text/javascript">if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script> <script type="text/javascript">jQuery.noConflict();</script> <script type="text/javascript">if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script> Please tell me it's because of jquery? On the CMS forum I was told
Code removal
Hello, I have just has a SSL installed on my site and I have done a test to find links that are not in the https format. Somehow, the code http://code.jquery.com/ui/1.11.2/jquery-ui.js is on my homepage and I honestly do not have a clue as to how it was placed there. To my knowledge, I have not installed a product on the site that uses your service. I wish to have it removed from my footer as it is causing a conflict with my SSL. I do not know if it was part of my WP theme but I will be checking
Hold execution for self made alert box
guys.. I have my made alert box using DIV. i need to hold the execution till user click the YES or NO in that DIV alert. is there any way to achieve this..?
Capture click and redirecting is not working
I want to capture any hyperlink click and redirect them to different host name. So far it's not working...not even the alert is showing. Below is my code so far: $('a').click(function(e){ e.preventDefault(); var href = $(this).attr('href'); var url_hash = $(href).text().replace("https://mysite.knowledg.com/help/article/link/", "https://devbox.mysite.com/kb/article/"); alert(url_hash); //redirect the link to commonspot page if($(this).attr('target')
Multiple row editing form in JqGrid
Hi, I have a requirement to implement multiple row edit and save the data for all rows at a single go in a separate form. Could you please help me with some guide or example to perform this. Thank you.
Search on JSON vs TABLE itself
hi Guys, what is best approach for performance.. 1) searching in json by ($.grep) and then bind to table in every keyup OR 2) searching in Table itself and show hide the <TR> please suggest..!!!
Toggle from other location
Hey everyone, I'm creating a site in wordpress with some audio links, (download, lyrics, play song etc...) Now i have a few of these boxes: <div style="" class="vc_col-sm-4 wpb_column column_container vc_custom_1457182789700 "> <div class="mk-audio small-version-false add-baloon audioplayercss"><span class="mk-audio-author">Song Title</span><script type=""> <div class="jp-download"><a class="mk-icon-download" href="Song.mp3" download=""></a> </div> </div> </div></div>
How to use .ajax or getJSON to query multiple urls and then sort the combined data?
I was trying to write a Javascript using jQuery to retrieve the repositories under my username and the organizations I own on GitHub, and then sort them by the number of watchers and so on. However, I never really make it work. The core task is just to query multiple urls and combine the raw data before sorting and formatting which I can do. I have searched online, but it seems very tricky to retrieve multiple data sets and combine them as I may not understand the scope of variables and data structures.
Drag n drop - hinder certain rows from being dragged
Considering this code I'm using for drag n drop: $(".gridview").sortable({ //items: 'tr:not(tr:first-child)', items: 'tr', cursor: 'pointer', axis: 'y', dropOnEmpty: false, start: function (e, ui) { ui.item.addClass("selected"); }, stop: function (e, ui) { ui.item.removeClass("selected"); }, }); I would
Option value or Test
Hi, Here is Jquery and it was triggered fine whilst I am not getting value of option or text. Can you please help me to correct the below sample script to get alert for selected option val or text. Thanks in advance $(document).ready(function() { $("#adx_quickservice").hide(); $("#adx_recentquality").on("change", function() { //var selected = $("#adx_recentquality").val(); var selected = parseInt($("#adx_recentquality").find("option:selected").val()); //var selected =$("#adx_recentquality").text();
source bug???why cssHooks get method computed param always value is true?
Under what circumstances is false?I want to the experimental value to false code, can help me?
Assign variable from text file?
hello, i have a text file with one line (numeric), i search a simple way to ready this value and assign to a variable. please help me :)
Jquery group by table record export issue
Im trying to export jquery group by table record, but not able export more than 260 record. Please help regarding this issue
Multi tab select examples
Hi I need to select multiple tabs at on time and also can deselect them. The tabs I select should get appended to a hidden text field. Can somebody send few examples or code for it? Something similar to attached images.
Next Page