Sho Hide ok sous FF mais pas sous IE
Bonjour, dans un formulaire je test la valeur d'un champs pour afficher/masquer des valeurs dans un select. si je met 0 alors je cache l'option "rouge" dans le select. si different de 0 alors j'affiche "bleue" et "rouge" afin que l'internaute a le choix. mon code fonctionne très bien sous FF et sous chrome mais sous IE.....8O sa ne fonctionne pas. Au lieu d'avoir les lignes qui se cachent elles restent toutes visibles sous IE. Voici mon code : dans mon header je met : <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
Using IE10 with scripting Disabled
I am developing a Blogger site using IE10 and am experimenting with "scripting disabled" since some of my readers have it disabled for some odd reason. When scripting is disabled none of my own JavaScript code (of which there is a lot) works, of course, but jQuery DOES WORK everywhere it is used. . I do not understand this since jQuery IS basically JavaScript. Can someone explain this. I have not tried this in Chrome or Firefox yet but intend to. Thanks, V. Ingram
Need to update jQuery. IE 11 causing many problems!
Hello, I am having problems with our GUI, especially now that IE 11 is out. I am running jquery 1.8.0. I remember messing around with newer versions about a year ago but some of the things we were trying to do would not work. In other words, 1.8 seemed to "play" the nicest with what we wanted to do. So, now that IE 11 is out I am having quite a few problems. I'm having problems embedding SWFs with swfObject. Our GUI no longer works locally, none of the content shows up at all. Not sure if this
why doesnt work in Chrome! (when it works in firefox!)
this is part of my html <label for="classification">Classification</label> <select name="classification" id="classification"> <option class="notOption" value="faculty">Faculty</option> <option class="notOption" value="staff">Staff</option> <option class="notOption" value="student">Student</option> <option class="notOption" value="graduateAssistant">Graduate
How can i select the closest tr contain element?
How can i select the closest tr contain elelment here is the code: http://jsfiddle.net/boajay/p3sFh/31/ thx
HI i am trying to get value from a url
my problem i have a url which returns a random number every time request went to it.i am trying to get the value using ajax response. my html code. <button class="button" type="button" name="buttonpassvalue" id="random" >Get Random Number</button> <div id="number"></div> My script is <script type="text/javascript"> $(document).ready(function() { $("#random").click(function() { $.ajax({ type: 'GET', url: 'http://202.131.103.198:8888/poll/get-random', data: datastring, success: function(result)
Randomize hidden content on load, reveal hidden content on click
Howdy, I have put the following "Q&A" divs together: <div class="Questions"> <div class="bat"><div class="firstheader"><button>Question1</button></div><div class="Question"><div id=Question > <div id="Answer"><div id="Answer1Output"></div><div id="ShowAnswer1" href="javascript:void(0);"><button>Show Answer</button></div></div></div></div><div class="Space" style= "height: 80px"></div></div> <div class="cat"><div class="header"><button>Question2</button></div><div class="Question"><div id=Question
Google Maps resize issue inside a hidden div
Hi All, I hope someone can help me with this. I am not very experienced with jQuery and need help implementing a fix for the issue where if you place a Google Map into a hidden div it does not load fully and only shows in full after the browser window is resized. I understand that the following has to be added to my code, but I just really dont know where or how: google.maps.event.trigger(map, 'resize'); I have tried adding it to my header file, to the jQuery file, to the HTML files but to no avail.
can't access class via the "." class selector
when the code below executed $("#omniProperties").append("<input type=\"text\" class=\"omniProperty\" size=1 value=\""+ attrs[key]+"\">;" ); It produces the html code: <input type="text" class="omniProperty" size=1 value="100" /> I can't access this text box with code below. $(".omniProperty").click(function(){alert("here");}); Normaly the "Auto Complete" function of my editor will display a list of classes, but this class is not in the list. Can someone point me in the right direction? Thanks
Validate classe required
Bonjour, J'ai formulaire avec différents dont certain de la valeur sélectionnée dans une liste. Je souhaite vérifier que c'est champs sont bien remplis. Le problème est que le contrôle des champs fait quand même effet si ne sont pas à remplir. Comment faire? Voici la fonction qui permet d'afficher les champs en fonction de la liste: $(document).ready(function() { $('#mHT').hide(); $('#taux').hide(); $('#cTotal').hide(); $('select[name="type"]').change(function()
i have this jquery code (form validation code),,everything is works but there is problem of return false. Everytime it fires return true so how to do it return false..please help me out
<!-- html--> <form name="registration" id="registration" action="" method="post"> <div class="form_settings"> <p><span>Full Name</span><input type="text" name="name" id="name" maxlength="30" placeholder="e.g. Gourav Ranadive" class="validation" error_id="error_name"/>*<div class="validationerror" id="error_name"></div></p> <p> </p> <p><span>Username/Email</span><input type="text" name="email" id="email" maxlength="30" placeholder="e.g. gourav@gmail.com"
Show another table by hovering on a table row
Hello, maybe someone can help me. I'm trying to show a table by hovering a row of another table. Maybe it's more understandable by checking the jsfiddle example: Click I simply can't find my mistake. Thank you very much in advance.
Replace content of a div with its decoded content.
Hi; i would like to change the content of any div with the class ENCODED with the decoded content and replace the class ENCODED with DECODED than remove the class HIDDEN, here is an example. I suppose my page have two div's with the class ENCODED, but in reality i can have just one or many (more than 2), so the result i want is : Before the operation : <div class="ENCODED HIDDEN">VGhpcyBpcyBhIHRleHQ=</div> ... <div class="ENCODED HIDDEN">VGhpcyBpcyBhIHRleHQgYW4gb3RoZXIgdGV4dA==</div> After the operation
Trying to remove and add classes on window resize... [SOLVED]
Hi y'all, I don't know what I'm doing wrong, but I can't seem to get my script to work. Essentially, I'm trying to swap Font Awesome Icon classes if the window size exceeds 767px. But it's just not happening. I have been (and still) going through the forums, both here and on Stack Overflow, and tried suggestions made to other coders... no dice. I certainly hope someone can help me. Many thanks in advance. Ess'iele ... seeing things. $(function() { var wSize = $(window).width(); $(window).resize(function()
How can i select the next element?
Here is the html code: <form method="post" action="" id="product_form"> <table width="100%" cellpadding="2" cellspacing="0" border="1" bordercolor="#666666"> <tbody> <tr bgcolor="#F3F3F3"> <th><p>Item No.</p></th> <th><p>P.order#:</p></th> <th><p>Description</p></th> <th><p>Qty</p></th> <th><p>U.price</p></th> <th><p>Amount</p></th> </tr> <tr class="mytr"> <td id="orders"> <input type="text" name="product[]" class="products"
using jQuery inside a .js file
Hi I have to use a javascript functions on multiple pages. Hence I have created a separate file with extension .js so that I can include it directly where I need it in my code. function ClosePopup(ctrl, ctrlid, btype) { var input = document.getElementsByTagName("a"); var n = ''; for (var i = 0; i < input.length; i++) { if (btype == 1) { n = input[i].id.indexOf("popClose"); currentpading = input[i].id.replace("popClose", ""); } else {
jquery close button click
Dear all, I am using jquery modal poup to open a page (example from parent page,a.spx, iam opening the child page,b.aspx.) Following is the code <script type="text/javascript"> $(function() { $("[id$='lnkbtn']").click(function() { var str = $(this).attr("details"); var page = ('../b.aspx?no=' + str); var $dialog = $('<div></div>').html('<iframe style="border: 0px; " src="' + page + '" width="100%" height="100%"></iframe>').dialog({ autoOpen: false,
Change details of an element whose id is constructed from variables
Dear all I am having a table <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td>Product id</td> <td>name</td> <td>Detail</td> <td>remarks</td> <td>process</td> </tr> <tr> <td id="11">11</td> <td>21</td> <td>31</td> <td id='process11'>41</td> <td> </td> </tr> <tr> <td id="12">12</td> <td>22</td> <td>32</td> <td id='process12'>42</td> <td> </td> </tr> <tr> <td id="13">13</td> <td>23</td>
what does this symbol mean in this perticular case?
you can see "-=" before "+" symbol in this statemnt, i know x -= y means x = x - y but here why this symbol is used though if remove the symbol also iam getting the same result.. pls tell me why this ymbol is used? $(this).animate({'left':'-=' + scrollAmount}, 'slow'); actually this is a thumnile scroller code $('#photos_inner').toggle(function() { var scrollAmount = $(this).width() - $(this).parent().width(); $(this).animate({'left':'-=' + scrollAmount}, 'slow'); }, function() { $(this).animate({'left':'0'},
Tooltip Help Please!
Hello, this is my first post here! I'd really appreciate it if someone could help me out with this! I've only just started learning javascript and jquery and would like to be able to edit a script but i'm nowhere near that level. Basically what i've got is ithis: <a style="cursor: pointer;" class="addspeech" rel="#name1"> <a style="cursor: pointer;" class="addspeech" rel="#name2"> Which points to: <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
$.append adding to last element in table row instead of creating new row
Hello, Im trying to insert a new row in a table. But instead its appending to the last element in the row. Ive done this a hundred times, and it's not working now I should have gone into underwater demolition like my mother wanted me to ... // Add container $("#dtltbl").on("click", ".addCont", (function () { var $classes = $(this).closest("tr").prop("class"); var $class = "." + $.trim($classes.replace("itemno",""));
Dialog open if recordset is empty?
Hi, I am trying to use a Dialog within my webpage. I have a recordset which returns a email address. I would like for the Dialog only to open if the recordset is empty. This is Script so fare <script> $(document).ready(function() { $(function() { $( "#dialog-message" ).dialog({ modal: true, autoOpen: false, buttons: { Ok: function() { $( this ).dialog( "close" ); } } }); }); }); </script> <div id="body"> <% If Email.EOF And Email.BOF Then
Placement of jQuery script issue - not working from external file
Hello, I have a script that restricts user input and this works. Problem area. I have a external file that i keep the js in and for some reason the script wont work from the external file.. I also noticed that this particular script needs to be below the input field in order for it to work. I like to keep the script in there respective files can this not be done with this particular jQuery script? side note the jQuery test which is lso found in the external file, work <!DOCTYPE html> <html> <head>
Joining Objects from TW Arrays into one Array?
Hey guys, I am using getJSON in a for loop to collect data. Each response contains an array with multiple objects. for (var i = 0; i < index.length; i++) { $.getJSON("url" + index[i] + "/lists", function (data){ console.log(data); }); }the console log will then look something like > [Object, Object] > [Object, Object, Object]Now i want to join these two Arrays into ONE new Array... > [Object, Object, Object, Object, Object]I tried to declare a new Array and used
javascript slider and jquery menu conflict
After the WP plugin running my fullscreen background slideshow broke I added a javascript to the homepage to reinstall the slider images. Now however the menu does not collapse onclick as you see it doing on the other interior pages. When you click the down arrow on the menu it's supposed to move up. I'm hoping for a lead or some help so I can accomplish both functions. I can provide script code here. Just let me know. Thanks.
Datepicker - Custom text below calendar not working
I am having trouble with displaying a custom text below the calendar. The datepicker consists of highlighting dates captured from database, and I want a custom text to sisplay below the calendar as shown here: http://jsfiddle.net/william/ctqUa/1/ This is the code that is not working for me: $("#datepicker").datepicker().bind('click keyup', function() { if ($('#ui-datepicker-div :last-child').is('table')) $('#ui-datepicker-div').append('<p>hello world</p>'); }); My complete code in jsfiddle:
retrieve class names using .attr("class") or .prop("class")
My script will dynamically add or remove the classes for an element. I tried to get the class names for this element. 1. which method should I use? $ele.attr('class") or $ele.prop("class"). Both of them seemed working. But I feel confused. 2. As I searched around and found that attribute is initial state for attributes which means the $ele.attr("class") should not be changing if I add or remove classed for this element. I used jquery 1.10.2 Thank you.
Randomize ul li content on page load
I've tried to do this several times, and so far I can only get my content slide to randomize the order in which the slides are displayed to the user. What i mean by that is that it keeps the same order, but just displays them randomly. I actually need the ORDER of the slides randomized on page load. For example, I have a ul like so: <ul class="rotator"> <li>Slide 1</li> <li>Slide 2</li> <li>Slide 3</li> <li>Slide 4</li> <li>Slide 5</li> </ul> And then a pager that is created on the fly below it that
Jquery html() function Issue
I am using Jquery for making clone of some HTML tag. I have one page where i can duplicate of (i.e HTML tag ) using jquery. To maintain the UI i have created the variable in which i have saved the HTML tag and i am sending it to server side using hidden field.But whenever receive the hidden field and i try to put that into <table> tag it appends all button together at one place out of <table> tag ***********Code To Add Into Html Tag********************** var tagsToReplace = {
Problem with onload click the anchor tag using jquery or java script.
Hi friends i am try many ways to onloading the page click the anchor tag using jquery or java script. must see the rel attribute . <div id="local"> <a id="fmp-button" href="#" rel="http://google.com"> click </a> </div> <script> //$('#fmp-button').trigger('click'); //$("a[href='#']").click(); //$('#fmp-button').click(); //$('#fmp-button')[0].click(); //$(function(){ // window.location.href = $('#fmp-button').attr('href');
Tabs example
I am trying this example (http://code-tricks.com/create-a-simple-html5-tabs-using-jquery/) in JSfiddler and it works fine. Problem is adding to my web page... I think JSFiddler is running everything.. Do I need to add a bit of code to run the JS page onload? How do I do this... it works in JSFiddle but not in my webpage...there is something I am missing http://jsfiddle.net/Jaykapalczynski/3pgua/1/ In my website: This is what I am trying in HTML <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type"
Problem with phone number fields
I'm sure I'm doing something wrong here, but I don't understand what, and would very much appreciate some assistance. I have a page with phone numbers on it and the customer wants auto-tabbing between fields. This seems easy enough and what I've written works fine if the fields are empty and/or the user types slowly. But if the user types quickly (I type 123 on the keypad) on prefilled entries, the cursor has a tendency to jump OVER a field as opposed to into it. I've created a jsFiddle to recreate
issue while playing mp4 on android
I’m using PG build 3.0 (tested also on PG framework). I am using a video tag in my html, it is working fine on ios. The problem is that I cannot play the video file (.mp4) in Phonegap application in Android: My code is simple: video controls preload="none" src="http://musee.moursel.com/video/intro.mp4" width="320" height="240"
Jquery not woking in masterpage across folder structure
am trying to use an existing dropdown menu built on jquery. I have a folder structure that is necessary for setting up authentication. Also a masterpage which is at the root required from one or more of the folder directories: Similar to this: Project Scripts_Folder Jquery.js Jcustom.js Authenticated_Stuff_Folder A_Page.aspx A_Nother_Page.aspx About.aspx site.master Ive tried setting up the jquery on the site.master like so (after head) <script src="Scripts_Folder /jquery.js" type="text/javascript"></script>
Layout of pdf file.
Hello everybody, I have problem to display a table with many columns in a pdf file. It work fine when the number of the columns is about 15, but not when the number of the columns is > 15. It should automatically create a new page and it should start from the next column from where it was interrupted. I you like to see the execution, please: http://registroonweb.it/registro/stampaRegistro.php?a=1&b=C300&c=1 Thanks in advance. Tegatti
Getting Indexes Of Values in Arrays.
Hi, if I have the following array, myArray = new Array(0,4,3,8,7,4,5,11,12,4,10,9,8); If I want to search for the value, 4 - it will output a string with the indexes of the original array - in this case it would be 1,5,9. Currently I am looping through the array and building a string. Thanks,
delete an array object
Hey, Currently i'm storing data in an array like this: name - lastname - zipcode - street Wel, now i want to find this object with only the name - lastname and the delete it out of the array. Does anyone know how? Thanks
File Upload from mobile to call service from Jquery
Hi All, Please help me on below scenario. I want to upload text or document file from mobile .In Jquery save click time how to send file to WEBAPI Controller.Code Is Below Index.html: <label for="basic">Category Name </label> <select name="category" class="categoryVal" id="category"></select> <label for="categorytitle">Title</label> <input type="text" name="categorytitle" id="categoryTitle" /> <label for="categorydescription">Description</label>
Add a div onclick of a button
I am working on struts2 web application in which I have a button on a particular jsp page. Onclick of this button , I need to add few elements(5 labels and 5 textboxes) which are within a div tag. Again when I click on that button another div should be dynamically generated containing those elements and the first div should collapse with the use of accordion. This process should get repeated the number of times the button is clicked. Please guide me how should i approach this problem
get the text from an input radio button
I am befuddled about how to get the text label from a radio button. I have several radio buttons, like the following, and one of them is always checked. <label><input type="radio" id="US" name="country" form="rentDataInput" value="US" />United States</label> I want jQuery to get the text, i.e., United States, in the above example from the checked radio. I've tried a bunch of things using text(), but recently found in the documentation that text() does not work with inputs. After more poking about,
Next Page