jquery

Multi-line string insert using jQuery

$("#addSelect").click(function() { $("#optionsForm").after("Hello world."); } ); This works. $("#addSelect").click(function() { $("#optionsForm").after("<tr> <td><input type="text" class="optionField" value="Options" /></td> <td> <ul class="option"> <li><select><option>Value..</option></sele...

JQuery select children based on more than one class from parent element

I have just started with JQuery and I need to change the css class of two elements and remove their onclick event handlers. When any of the three elements in the div with class upDown is clicked, a popup appears. When a button in that popup is clicked, vote_click() is called. I need to disable the elements with classes "up" and "down"...

galleriffic with lots of images (around 100)... is it possible ?

Hello, as far as i notice, galleriffic embed images on the page, eventhough it use paging, but it still need to load all of the images. this become problem when i use it with PHP's require_once. The php memory threshold will make gallerific failed to load when i try to load a lot of images. any idea how to solve this problem ? or any J...

jQuery $.get loading

Hi, I'm using jQuery $.get method to load a page into facebox plugin, but the plugin alaways get a little laggy when openning the page. Is there a way to avoid that lag and display the contents only when they're ready? Here's a live example of the problem (double click on any image) : http://aeon-dev.org/edit-in-place/ Cheers! ...

jquery get css property font-weight returning number instead of 'bold' in IE

I'm trying to get the font-weight of a property using latest jquery, doesn't work in IE somehow... on IE dev toolbar console - $('#ctl00_ContentPlaceHolder1').css('font-weight') returns 700 ! I checked in the source... can't see any problems with the style formatting. Works in FF. ...

Changing background with jQuery getting stuck or can't update img's src attribute

I've spent a few hours now trying to figure this one. I've got a store display that cycles through properties and I've knocked up a simple gallery sort of script. For the last week it has worked beautifully. I went in today to tinker some unrelated JavaScript (but on the same page) and now there is an issue. To make the images fade to...

JQuery process cloned objects

Hi again folks, Quick question please. How do you process JQuery clones objects? Simple example: <div class="hello"> <select name="products[]"> <?php foreach ($pageposts as $post): <option value="'.$post->ID.'">'.$post->post_title.'</option> endforeach;?> </select> <input type="text" name="try[]"> <br/> </div> <form> <div id="goodbye...

Make a html element appear clickable with JQuery / JS

Is it possible to make an html element appear clickable with JQuery? By appear clickable I mean have the mouse pointer change appearance when the user hovers over the the element. I dont want to use a tag. ...

text-align always return left by jQuery in IE

Not sure why text-align property always return left in jQuery for IE? <script> $(function() { alert($('#ctl00').css('text-align')) }); </script> <span style="font-weight: bold; text-align: center;" id="ctl00"> ...

prevent chage event in jquery accordion

Hi, I am using Jquery ui accordion , in that i have a text box as a accordion header , now when i am trying to type a space in text box accordion change and changestart event fire so how would i prevent this thing while typing space in a input box ...

how to check javascript array equals ?

var a=[1,2,3]; var b=[3,2,1]; var c=new Array(1,2,3); alert(a==b+"|"+b==c); demo how to check these array, and get true from equals method? under jquery, has any methods for this? thank you :) ...

using jquery to make ajax call and update element on form submit

Here is my html form <div id=create> <form action=index.php method=get id=createform> <input type=text name=urlbox class=urlbox> <input type=submit id=createurl class=button value=go> </form> </div> <div id=box> <input type=text id=generated value="your url will appear here"> </div...

how to make table of content in jQuery

as I am beginer please tell me how I can make toc for my web page using jQuery. my page would look like this ====== sample Table of Content ==== Introduction |> What is Web |_> What is JavaScript Programming HTML5 |> Learn HTML5 |> Your First Example ...

jQuery sorting of div elements based on count, and date/time (timestamp)

Hi SO-ers, I currently use the sort function to sort my div elements based on the count value. Here's how it's being done now: (I'm not sure if it's an efficient method or not..) $('#list .list_item').sort(sortDescending).appendTo('#list'); function sortDescending(a, b) { return $(a).find(".count").text() < $(b).find(".count").text(...

Looking for a jQuery gallery script which moves elements depending on mouse position (ie. for a sliding gallery).

Hi guys, I want to make a gallery which scrolls left and right depending on the mouse position. So you move the mouse right and the gallery scrolls left sort of thing. Thanks, Henry. ...

jQuery .sortable + receive Event: get the position of the inserted element

I've got a jQuery sortable element and another draggable element. With the sortable receive event i get the new inserted object and start an ajax query to write it in database. But it would be nice to get the right position of the new element, too. When i fire sortable("serialize") on receive event, the new element is not in the string...

How do I get the Id of a hyperlink?

How do I get the id of a hyerlink on a page? Example <a id="myID123" href="myLinkPageName.aspx">myLink</a> Note: The page name and the link name is static! I should get the id "myID123". ...

ASP.NET Treeview search and select

Hi, I have a databound treeview on an aspx page, that which will potentially contain alot of nodes. I was hoping to allow the user to search for specific nodes (by their text value) on the client side as to avoid posting back for each search. Ideally I would like the user to enter text into a textbox and when they click on a search butt...

jQuery Highlight Effect with no fade away

Hi, I want to highlight a <span> using jQuery.effect('highlight'), but it fades out after a period of time. How can I get the highlight to be persistent? My code is: $('span').live('click', function () { $(this).effect("highlight", { color: "#ff3fff"}); }); ...

JQuery UI: multiple progress bar - problems to set dynamic values

Hi. I have some progress bar (search results), which value is dynamically set on document.ready <div class="progressbar" rel="21"></div> <div class="progressbar" rel="36"></div> <div class="progressbar" rel="44"></div> <div class="progressbar" rel="58"></div> And $(document).ready(function () { $("div.progressbar").progressbar({ ...