how to select of this line "data[new][formhidden_field1]" here it is "formhidden_field1"?
how to select of this line "data[new][formhidden_field1]" this "formhidden_field1"? I want to select the text "formhidden_field1" in the variable.
Delete table row and table column
Remove rows and columns from table without deleting underlying
information. Shift row up when row above it is deleted. Shift columns
left when column to left is deleted. Do not allow left most column to be deleted. Do not allow the column header to be deleted.
How to add elements to jquery animation, one by one?
Hello, I'm creating a web page composed of wheels looping with mouseover. I succeeded to start only the selected wheel but now I want to loop another wheel, and another etc...while the others wheels (which are already looping) still work. <script> $(document).ready(function(){ $("#image1").mouseover (function(){ $(function() { var $rota = $("#image1"), degree = 0, // modifier angle timer; function rotate() { $rota.css({ transform: 'rotate(' + degree
Adding jQuery to a C Program
Hello. I am developing a C program which produces a HTML file, which is then dynamically displayed. I have added CSS style-sheets by including a function which prints the lines of the CSS file into the header of the C program. I have tried to add jQuery in the same way, but there is a small section of code with lots of \ characters, which in C programming is an escape character - does anyone know how I can add the jQuery code in this fashion? Any questions just ask.
Jquery magnify effect- can U do it
http://www.williams-sonoma.com/products/magimix-5200xl-16-cup-food-processor/?cm_src=AutoRel2 please vist the link above . You will see a food processor picture. Move the mouse pinter over the image. You will view a larger version of image like magnify effect. I want to know how to do it and what this effect called. Thanks in advanced.
Ajax post function not work in ie. It works in all the other browsers. Below is my code.
<script> $(document).ready(function() { $(".asu").click(function() { var day = $(this).text() day = day.substring(0, 2); $.post('events.php',{day:day}, function(data) { $("aside").html(data); }); }); }); </script>
How to create the gridview dynamically using jquery?
I'm trying to get the titles in my xml file side by side dynamically. I tried but i didn't get the title side by side. My code: $(xml).find('item').each(function () { var item = $(this).attr("name"); $("#grid_list").append('<div class="ui-block-a"> <div class="ui-bar ui-bar-c" style="margin: 5px;"> <a href="#">"' + item + '"</a></div></div> <div class="ui-block-b"><div class="ui-bar ui-bar-c" style="margin: 5px;"> <a href="#"></a></div></div>'); $("#grid_list").grid('refresh');
jquery-jtemplates not working
Hi, I am using jquery-jtemplates pulgin but it fail while string contains space " " Here is Code:- $(document).ready(function () { var data = [ { ID: 1, Name: 'Anne kumar', Email: 'anne@domain.com' }, { ID: 2, Name: 'Helton ture', Email: 'amelie@domain.com' } ]; $("#jTemplateDemo").setTemplate($("#templateHolder").html()); $("#jTemplateDemo").setParam('x', 2);
Problem with JQuery 2.0.0 and IE10
Whenever I put the reference to JQuery 2.0.0 in my HTML I'm getting this error in my IE10: For the minified version: Line: 4 Error: 'JSON' is undefined For the full JQuery: Line: 349 Error: 'JSON' is undefined All I have is just a script tag pointing to JQuery 2.0.0. I've even tried pointing to the Google Hosted library and get the same exact error. If I point to the 1.9.1 library instead, I get no error at all. When I load the page in Google Chrome everything is fine as well. There isn't any
Problem combining tabbed panels and cycle slide show
I'm new here, so please excuse moderate amounts of stupidity. I'm trying to create a tabbed page with a slide show on one of the tabs. I have a working slide show here: http://dvsmil.com/test/testslide2.html - this is fine This is what happens if I try to put the slide show on the third tab: http://dvsmil.com/test/testslide.html Here, the slide show works but the tabs do not! http://dvsmil.com/test/index.html It appears to be some incompatibility between libraries but I don't have the expertise to
Using JQuery to add a hyperlink to existing text
I'm using a form plugin on a site and I want to add a hyperlink to a specific text "bump". I'm trying to accomplish this using jquery and I have the basic document ready function setup but I'm trying to figure out how to look for a specif text in a label field and then append a hyperlink afterwards. Can this be done using JQuery?
Toggle click
I have div that when clicked it change css and do some animation features. But I want it to be reversable. Here is script I use so far: <script> $(document).ready(function() { $('#change').click(function() { $('#logo').animate({backgroundColor: '#feb20e'},100); $(this).animate({backgroundColor: '#eda710',borderRightColor: '#d3940b'},500); $(this).css({ 'background-image': 'url("Images/arrow-hover.png")' },"slow"); $('#logo').css({ 'background-image': 'url("Images/test2.png")'},"slow"); }); }); </script>
How to Refresh ZeroClipboard.swf using jQuery
I am using the ZeroClipboard.swf and following jQuery method to update a text value. I have following at the index.html <span class="htmlClass">My Custom Page</span> and this Script $(document).ready(function(){ $('.htmlClass').html($('input:text').val()); $("#pageName").click(function() { $('.htmlClass').html($('input:text').val()); }); }); but the ZeroClipboard.swf is always taking the first Value "My Custom Page" which has been initialized before html() function. Can you please let me know if
Re-loading a div including JavaScripts located within it...
Hi, I am wanting to use the Met Office weather widget on a web page, but it doesn't provide any easily accessible facility for users to change the location of the forecast. I have been working on a way of to allowing users to choose from locations in a drop-down box that will then change the location in the weather widget. The weather widget is initiated by two bits of JavaScript: <script type="text/javascript" moWWidgetParams="moAllowUserLocation:true~moBackgroundColour:white~moColourS cheme:white~moDays:5~moDomain:www.metoffice.gov.uk~moFSSI:351649~moListStyle
Toggle click
I tried to use toggle whenever someone click on the div. But nothing hapen then. Here is script I use: <script> $(document).ready(function() { $('#change').click(function() { $('#logo').animate({backgroundColor: '#feb20e'},100); $(this).animate({backgroundColor: '#eda710',borderRightColor: '#d3940b'},500); $(this).css({ 'background-image': 'url("Images/arrow-hover.png")' },"slow"); $('#logo').css({ 'background-image': 'url("Images/test2.png")'},"slow"); }, function() { $('#change').click(function()
Is there a jQuery equivalent to YUI’s DataSource?
I asked this on StackOverflow but didn't get any answers - I'm probably missing the point by a mile so I'm hoping someone can set me straight. One of the things I like about the YUI framework is the DataSource control. A common widget that intelligently gets data from a variety of sources and plugs into other UI widgets in a standard way. So... you fetch tabular data into a DataSource and then have the option of plugging that data into a table, a chart, an autocomplete widget, a straight list. All
Can jQuery access Razor web helpers?
I'm using Web Helpers in an asp.net Razor app. To show some Twitter content (Tweets), all I have to do is call Twitter.Profile("jQuery"). As great as jQuery is, though, I want to be able to replace that arg with another dynamically. So, in an element with the ID "spanProfile", I tried to do this: $("#spanProfile").val(@Twitter.Profile(searchTerm)); ...but it doesn't recognize "searchTerm" (searchTerm is a jQuery var) declared in the same (button click) event where this line appears (now commented
jQuery and HTML issue
I have a really strange problem I don't know what is wrong. I have created 4 boxes in HTML wrapped in a div container. The HTML code is as follows: <div class="categories" style=" margin-left: 10px; width: 930px; margin-top: 15px; margin-bottom: 15px;"> <div class="box1" style="float: left; text-align: center; width: 215px; height: 240px; margin-right: 15px; background-color: #fff;"><h3></h3> <ul class="products" style="width: 200px; height: 230px; margin-left:auto; margin-right: auto; overflow:
Why does the razor helper ObjectInfo.Print() wreak havoc on my page?
I added a temporary "Debug" tab to my page, with the id of "tabDebug", and added this jQuery: $("#tabDebug").html(@ObjectInfo.Print(this)); but it causes my page to go all pear shaped - almost literally: everything tries to display in one tab, instead of each part remaining in its proper tab. What syntactical crime am I committing, and what is the right way to access razor objects from within jQuery?
outerHTML in Firefox and IE
Using jQuery & fairly new to it. I have the following code: var msgXML = "<XMLInput><Source></Source><MessageText></MessageText><SendTime></SendTime><Destination></Destination></XMLInput>", msgXMLDoc = $.parseXML(msgXML), $msgXML = $( msgXMLDoc ); and make changes to it within a function later in the code. $msgXML.find("Source").text(mySource); $msgXML.find("MessageText").text(mtxt); $msgXML.find("SendTime").text(currDateTime); $msgXML.find("Destination").text(dtxt); I use this line of code to return
Syntax error, unrecognized expression - but why?
Hi, I've been going round and round in circles with this for the last hour, and its driving me up the wall :S The code is: $.post('/cgi-bin/links/lead_contact_new.cgi', $('#contactForm').serialize() , function(data) { var errormsg = $(data).find('#error'); console.log(errormsg); if (errormsg.length > 0) { console.log("Seems to be an errror:" + errormsg); } else {
Function not working when added to wordpress?
Hi I'm new to Jquery and recently did my very first function.. Hurray! It's a classic add current state to selected page. In my jsfiddle it work as it should, but when adding it to my Wordpress site, it stops working. I've implemented the function in the header, but something is not working as it should. It's the the li's in the ugly orange box that i'm trying to manipulate. What did i do wrong? Cheers
how jquery $ works?
how $() function works. where it could be find to learn.
Navigating through search results in a custom div dropdown
Hi. I have created a field which displays a default list of options available on focus and allows users to search through the list and select the option they desire. And i want these options to be selectable using keyboard. Keyboard selection of the default list is working fine. But, when i enter the search query in the field and try to select the options displayed using keyboard it does not work properly. Please help me out on this. Code here ----> http://jsbin.com/ujimih/10/edit
Duvida no envio de form pelo submit
Pessoal Estou começando a trabalhar com jquery, estou fazendo o envio do formulário através do seguinte script: <script type="text/javascript"> jQuery(document).ready(function(){ jQuery('#formulario').submit(function(){ var dados = jQuery( this ).serialize(); jQuery.ajax({ type: "POST", url: "classes/historico_add.php", //Aqui tenho que condicionar a URL de acordo com o value do botao (alterar ou cadastrar)
How I can put several tooltip on an image?
Hello! as I can put several tooltip on an image. example, in siguinete image when the user rolls the mouse over the display image information on the species of fish. EXPECTED RESULT: thanks you!! Mauricio H.
resize window and remake dom
Hi people, i'm create an awensome menu responsive (under construction) I would need to know how to return the DOM to the original state if the size of a screen are higher than 670 px here's the code http://jsfiddle.net/YCagQ/ thank's
Unclear where $(document).ready goes.
I have been using jQuery off/on for a little over a year now and I am still confused about triggering a jQuery script. I understand that there is a sequence of library scripts that are called within the head of the DOM, but I am looking at the trigger to run the script. I have seen $(document).ready( function() { blah blah blahhh; }); in multiple ways that works: 1-- as the script closest to the end of the header. 2--After the footer of a HTML 5 page, before the end of the body. 3--
A Colorful Clock With CSS & jQuery with real time of the server, not cliets time, ho do this?
Friends, I made a clock using this Jquery: http://tutorialzine.com/2009/12/colorful-clock-jquery-css/ But this watch takes time customer, I would use this jquery to get the server time, how I can do this? thanks
Forms help
Could anyone point me toward a good tutorial or book which covers jQuery and forms. Basically what I want is when a user selects an ID field in a jQuery grid, I want to use AJAX to populate an jQuery form. I have all the server side code worked out, I am just struggling with the rendering part. TIA.
Double checked
$('#somebutton').click(function(){ if($('#mycheck').is(':checked')){ $('#mycheck').attr('checked',true); }else{ $('#mycheck').attr('checked',false); } }); Ehehehehe, When i do checked and unchecked some checkitem it not change in second time... add attr yes but not visual and real change...
dialog in jquery tab only works first time
I have a dialog that opens from inside a tab. Everything works great until I change tabs and come back. the second time I visit the tab and open the dialog my javascript does not work. I can retrieve the data from the form but its the old data from the last time it was open. the ajax does not submit and if I try debugging with firebug I see this error: uncaught exception: [Exception... "Component returned failure code: 0x8000ffff (NS_ERROR_UNEXPECTED) [nsIDOMHTMLDocument.implementation]" nsresult:
Reading input values and ids
I have a table that lists out order items. <div id="itemsummary"> <table id="itemsummarytable"> <tbody> <tr> <tr> <td>Item 1</td> <td>$6.00</td> <td><input id="n_7996146" type="text"></td> <td><input id="c_7996146" type="text"></td> </tr> <tr> <td>Item 2</td> <td>$16.00</td> <td> </td> <td> </td>
html table replace content onclick of radio
I have potentially several DIV's witha table in it, each with an incremental id (see below) With a jquery function to add and remove rows. I need if they user click the first radio in each row to replace the next 3 radio's with a select box with the same incremental id. I also need a cancel button on each row to revert the content back to the original radio buttons. this really goes over my head. I have no idea where to start. Thanks, Darryl <div id="TextBoxesGroup" name="TextBoxesGroup">
Trying to get attribute and store it, need help...
Heya, I need to find multiple elements on a page, get the value of the HTML "name" attribute, and then store it in a session (or something) so I can use it elsewhere on my page. Does anyone know how/if I can achieve this? I'm familiar with the find() jQuery function, so I don't need an explanation about how to find the desired elements, rather I need to understand how I get get and store the value of a specific attribute. Thank you for taking the time to read this!
Working with multiple same elements jQuery
I don't know if the title describes the problem correctly so the problem is as follows. If I have multiple elements with same classes or the elements are same like: <a href="Link"><img class="slider_image" src="url"></a> <a href="Link"><img class="slider_image" src="url"></a> <a href="Link"><img class="slider_image" src="url"></a> <a href="Link"><img class="slider_image" src="url"></a> These are slider images. What I want to do is get the the link of image and attribute both differently and I want
jQuery call not setting control
I have the following JavaScript/JQuery code... I have been asked to pick this up from a developer who left. I am stumped as there are two DatePicker controls and one of the controls is set while the other one is not set. The results display in a grid and then show in a panel with the datepicker controls. The event, clicking on the 'Edit' link in the grid populates two fields: Here is the code: DISREGARD it was an issue with a variable.
Need help to figure out why my endDateCtrl is not updating.
I have the following JavaScript/JQuery code... I have been asked to pick this up from a developer who left. I am stumped as there are two DatePicker controls and one of the controls is set while the other one is not set. The results display in a grid and then show in a panel with the datepicker controls. The event, clicking on the 'Edit' link in the grid populates two fields: Here is the code: return { init: function (ctrl_IDs) { _benefitPlans.pop(); _categories.pop();
How? JQuery finding document elements in another file?
I have this jQuery function I made, that I would like to be reusable. I have placed it by itself in a file called jqDialogs.js: //--------------------------------------------------------------------
function jqConfirm(msg, okLabel,cancelLabel,okCallBack,cancelCallBack){
$("#jqConfirmDialog").text(msg);
$("#jqConfirmDialog").dialog({
resizable: false,
modal: true,
draggable: false,
buttons:[
Showing html in dropdown
I am using www.applicationcraft.com. Is it possible to get a dropdown to render some formatted html. I can get it to display in a radiogroup. Cheers SteveW
Next Page