How to hide all children div except a specific one with jQuery?
<div id="target"> <div id="exclude"></div> <div></div> ... </div> $('#target').children().hide(); will hide all. ...
<div id="target"> <div id="exclude"></div> <div></div> ... </div> $('#target').children().hide(); will hide all. ...
I have a select box with 4 values (a,b,c,d). I just want to disable 'c' inside the dropdown. I used disabled property, it is working in all browsers but not in IE6. I want to make it work on IE6. Could you give me some fix for this issue. thanks ...
Hi, I have this single-page site that has 4 columns with draggable/droppable/collapsible boxes. I can drag and drop boxes in any of the 4 columns and collapse/expand the boxes. The interface actually works real fine. I'm now trying to get jQuery Cookie to remember the placement of the boxes, how the users have rearranged the boxes and if...
I want to add the attribute href to the end of an url: This should be pretty easy. This is what I have, but I think something's wrong. $('.delete-code').click(function() { var row = $(this).parent().parent(); $.ajax({ type: "POST", url: "http://website.com/admin/home/deleteCode/"+$(this).attr('href'), d...
How do I find the title text of a link in jquery. ...
I have the following controller and view. I am trying to learn jquery in codeigniter. The code does not work. So I am hoping someone spot out what I am doing wrong and correct me. Thanks in advance. class PhpJqueryBook extends Controller { function __construct() { parent::Controller(); } public function index() { ... } funct...
Hi, I am using http://mess.genezys.net/jquery/jquery.async.php for loop and need to reverse the order of the array(1,2,3) instead it goes from 3 to 1 Anyway to change that from the code? Thanks ...
I have a table that contains multiple rows. Each row contains 5 columns (or 5 TDs). Inside of the first TD is a text field and a select box. The 4 other TDs each contain a table that contains a set of radio buttons. <tr bgcolor=#ffffff> <td valign=center> <select name=player1> <option>0</option> <option>1</option> </select> ...
Hello, Is there some jquery magic that will let me do the following: [0- define some element in HTML (eg, a unchecked checkbox)] 1- update its DOM element by setting one of its attributes using .attr() (eg, by setting its "checked" attribute using .attr('checked', true) ) 2- temporarily remove that element from the DOM 3- reinsert t...
Hi, I'm writing an ASP.Net MVC application using Jquery to post some data to my users session. A user 1st accesses my site's page and then I have a button which performs a post using JQuery to an MVC controller method to store some data into the users session. When the initial page loads I create a session object for my user using a se...
i need to generate the output like this as shown in the image i am using JQuery PLugin to achive this . but the issue here how can i achive like this i have downloaded the library and added in my protect what is the thing that i should do in order to get the output like this like <html xmlns="http://www.w3.org/1999/xhtml"...
Hi please look at the HTML below. I am trying to use jQuery to get every 3rd instance on the DIVs with class="box" contained within the DIV with class="entry" to have a no right hand margin: My HTML code: <div class="entry"> <div class="box"> SOME HTML.... </div><!-- end .box --> <div class="box"> SOME HTM...
Hello, I have this following code: $(".preview").find("#panel").each(function(i, val) { var x = "" + $(val).html(); $(x).find(".dmPageHeadline").prepend(" 1 - "); console.log($(x).html()); html += $(x).html(); }); This code iterates through all accordion panels, concatenates its content and add " 1 - " to the header ...
Hello, I'm a heavy Codeignitor user and currently I have to build a page with extensive AJAX bits and pieces. I have been using JQuery all along the website and it's AJAX handling was perfect up until now. There is something that just doesn't feel right when i use a MVC with JQuery. For example: in Jquery I setup the callback URL easily...
Why cant i get the value ofthis hidden field? I have a control... <asp:HiddenField ID="HiddenFieldServerDateTime" runat="server" /> Which rendwrs as... <input type="hidden" name="ctl00$cph_main$HiddenFieldServerDateTime" id="ctl00_cph_main_HiddenFieldServerDateTime" value="08/01/2010 10:54:11" Which im tryoing to get the value of...
I have a URL like: http://url.test.com/account/name/pages/Stuff.html I want to take 'Stuff' and apply that as a class to body. <body class="Stuff"> ... </body> How can I get the current URL? How can I extract the text 'Stuff' after the final '/' Then add the class 'Stuff' to body? ...
Please visit the link below and check that content slider out cause I love it The Link Thank you ...
I have an <input type="file"> where user selects an image file. Is it possible to show this image on a page without actually uploading it to the server first? Basically what I want to do is use the local file from the user's computer. PS - I am using JQuery. ...
I'm using a facebox to display a form inside a lightbox, nothing too exciting (just a couple of datepickers, some textboxes and a checkbox). However, I'm having issues with the postbacks, whenever I post back from the facebox it adds a ',' to the start of the input (so "rabbit" becomes ",rabbit") Now, I saw that there was the same issue ...
In jQuery UI, what is the type/contents of the "ui" object passed to the callback function of alot of the event methods, and how do I use it? For example, the "selectable" demo, the event "selected" gets passed two params. "Event" and "UI". I am trying to use it as follows: $("#selectable").selectable({ selected: function(ev...