jquery

How do I change the amount of text a nested <a> tag encompasses using jQuery?

Hi, What I'm trying to do is to take paragraph containing a link, e.g.: <p>this is a <a href="#">link</a> to something</p> ... and modify it with jQuery so the link contains all the paragraph text, e.g.: <p><a href="#">this is a link to something</a></p> I can't seem to get my head around this at the mo. Cheers, James ...

JQuery Accordion - bottom-up in stead of top-down

Hi there, I have a question about the accordion plugin for jQuery. Basically, I've got it to work on my site nicely, there's just one thing that I'd have liked it to do and that is bottom-up opening in stead of top-down. What I mean by that is that my 3 buttons just stand in the vertical menu (div) in the bottom. And when you click it, ...

trailing comma problem, javascript

I'm currently trying hard to get my jQuery to work in IE7, when I Lint the following: $(".regflow").validate({ errorLabelContainer: $("#error-message"), rules: { txtTextOnly: {required: true,textOnly: true}, txtNumbersOnly: {required: true,numbersOnly: true}, txtPhoneOnly: {required: true,phoneOnly: true}...

Any better condition checking?

Hi All, I have one functionality where I am hiding few rows of a table on pageload.After that on click of a span, I am calling the toggle() to dispaly and hide rows in alternate click.Now I need to do some additional work after the toogle(), for that I am doing one check $myRows.toggle(); if ($myRows.css('displa...

How to display the pulldown button only

I am creating a customize combobox and want to use the default pulldown button used on <select> element. The combobox is composed of a textbox, a pulldown button and somewhat a table element containing the list. Everything is working except for displaying dropdown button. Note that I want to refrain from using any background image for t...

option tag title should be always display

Hi, is there anyway for the title in option tag to be displayed always? <select> <option title="sometitle" value="">1</option> </select> any ideas please? Thanks ...

Determine whether AJAX is possible?

I've a scenario where a client's internet explorer 6 browser does not allow instantances of activex controls to be created rendering ajax inoperable in jquery. This also pops a warning at the top of the user's browser. Is there anyway to detect that ActiveX is available without generating any warnings for the user? I'd like to use aj...

jQuery Browser Detection Doesnt Seem To Be Working

Due to IE's inability to fade transparent PNG's I have decided to change my fucntion to simply show PNG's if the user is using IE but to fade them if they are using any other browser. The function below works fine in IE and does what i expect it to but in any other browser i.e. Firefox, Safari it doesnt do anything, am i missing somethin...

How get Access to the text including a div in a div using jqery

Im trying now a long time to access the content of a div by click it. The structure is like this: <div class="note" id="DYNAMIC_ID"> <div class="headline">HEADLINE</div> <div class="content">Content</div> </div> I need something like this: $(".note").click(function(){ alert(this+".headline").text(); alert(this+".co...

Problem loading remote script with jQuery multiple times in Firefox

Hi! I have a script element in my webpage, something like this: <script id="myscript"></script> Now, from a javascript file, I'm doing something like the following: $('#myscript').src('http://foo.bar?callback=somefunc') Now this remote script 'returns javascript' of the following form: somefunc(somearg); When I run all of this,...

access Model object in jquery

I have a Model Customers, in which i have a list property PayHistory. I need to bind the table with the PayHistory object using jquery in my ASP.NET MVC (C#) application. I am binding the table using jquery as: <table width="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <div id="PaidDate"> ...

JQuery and hidden fields

Hello, I need to create a hidden field on my page, store some value in it and read that value later. If i create a regular text input and read its value using jquery, i get the correct value. But if i create a hidden input field,populate it with some text and read its value using jquery i get null. example: Suppose the following input...

Clear gridview using javascript/jquery.

Afternoon all. Another hour, another question! I have the following bit of jquery up and running that essentially 'resets' control contents. tbxProdAC.Attributes.Add ("onclick", "$('#txtbxHowMany').val(''); SetRadioFocus('" + radProd.ClientID + "');"); I have a gridview that pops up occasionally (don't worry, I have got...

One page Codeigniter site using jquery? ajax?

Hello, I am hoping for some advice, imagine if you will will you are on a website and you are greeted solely with navigation menu, on click the navigation menu that is situated within the left hand side of the screen you can add various content to the right side of the screen that is loaded in individual ‘divs’ then collapsed in accordi...

Strange isolated jquery errors

After launching a major redesign for a client, we've received a handful of emails from users who are experiencing a script that is slowing down, and eventually crashing their browsers. The errors that they send to us always point back to jquery, but I know the jquery itself shouldn't be throwing any errors. I was originally using the mi...

JQuery TreeView Plug-in SelectedItem Highlighting

I am using the JQuery TreeView plug-in and I would like a know how I can highlight/identify the last selected node. Has anyone run into this? ...

jQuery AJAX Load Content Problem

I have a XHTML Strict Website 'main.php' with a normal Header where jQuery and other Scripts are loaded - also there's a menu: <div id="tab"> <ul> <li><a href="#" onclick="content('load/feed.php');"><img src="feed_active.png" width="16" height="16" alt="Feed" /></a></li> <li><a href="#" onclick="content('load/feed2.php');">...

droppables not being created on drag start

trying to create my droppables based on the object being dragged. the drag works fine, but the droppables are not being created. there also aren't any errors in the error console. any help? JS: $("#theSchedule, #theExtras").live('mouseover', function () { $(".curSelected").draggable({ helper: 'clone', opacity: 0.50,...

JQuery: How do I hide a DIV when textbox is out of focus?

This is the code I have: <body> <form id="form1" runat="server"> <div> <asp:TextBox ID="txtInsertComments" CssClass="expanding" runat="server" AutoPostBack="false" TextMode="MultiLine"></asp:TextBox> </div> <div id="commands"> <table cellpadding="0" cellspacing="0" width="400px" id="tblCommands"> ...

Very interesting jQuery load behavior, a bug or solution?

I was recently trying to find a bug in some scripting and I discovered this very interesting behavior when loading a page with jQuery. File #1: Test1.htm <div id="test"></div> <script type="text/javascript"> $(document).ready(function(){ $('#test').load('test2.htm #content',function(){ alert('done loading!'); }) }) </script> Fil...