jquery

How to find the first row not with all cells filled by "&nbsp" with jQuery?

<table id="experiences" cellpadding="0" border="1" width="100%"> <caption>table name</caption> <tr><th>col1</th><th>col2</th><th>col3</th><th>col4</th><th>col5</th><th>col6</th></tr> <tr><td>something</td><td>something</td><td>something</td><td>something</td><td>something</td><td>something</td></tr> <tr><td>&nbsp;</td><td...

JQuery: binding click event to multiple href's not working properly

I am binding the click event to 4 href's (they have class="alink") using JQuery in the ready() event like this: $(".alink").click(function() { debugger; }); I expect whenever I click on a link, the event fires. However what I notice is that sometimes it doesn't fire and when it fires, it fires 4 times. Am I not doing i...

How to select rows except a certain one out of table with jQuery?

$("#experiences tr").gt(0).dblclick(function() { $(this).remove(); }); I used the above code to exclude the first row, but it turned out to be wrong. double click on all rows has no response now. ...

how to indicate a change in list elements' order using jquery?

i am using jquery sortable. right now i have a list of items that i can ALREADY use drag and drop. which is cool. i will use a submit button at the bottom of the list to submit the new order. the change in the list is not automatically submitted. All i need is somehow indicate that an element's position has changed. I googled quite a ...

How to judge whether selected result is empty or not with jQuery?

$("#experiences tr") For the above one,how to judge if it's empty or not? I thought its boolean value should be false,but seems not. ...

How to clone part of DOM and put it inside a div with jQuery?

$("id").clone() then put the jQuery object into a div#target how to do that? ...

jquery $.ajax vs asp.net ajax to consume asmx services.

hi, i was wondering if there is any significant difference between consuming .asmx services with asp.net ajax calls - serviceName.method(param,...) or with the jquery $.ajax call. I'm currently using the asp.net ajax which seems simpler but i get the js proxy file as well. i don't mind getting my hands a little dirty if using jquery is...

Is there a way to clone elements using JQuery?

Is there a way to clone HTML elements using JQuery? However, I want to be able to assign the cloned elements new attributes "id, name". So if I had a textfield element, I want to clone it without its value and change its id and name attribute to "exmple2" if it was named "example" previously. I would appreciate any help on this and any...

Stop loading of images with javascript (lazyload)?

Hello! I am trying to stop the loading of images with javascript on dom ready and then init the loading whenever i want, a so called lazy loading of images. Something like this: $(document).ready(function () { var images = $('img'); $.each(images, function() { $(this).attr('src', ''); }); }); This doesn't work (tested in ...

Have a problem with jquery append items..

I have a problem with datePicker. When a make a new text field with datepicker and append it to some div it wont work.. Did anyone had the same problem... $(function(){ $("#DP").datepicker({showOn: 'button', buttonId: 'kalendar', buttonImage: 'calendar.gif', buttonImageOnly: true}); $('a').click(function(){ $('<input...

Use ajax validation with javascript submit in nyroModal modal window

I have a form (signup.php) that pops up in a nyroModal window when I click a button: <input value="Edit" class="nyroModal" type="button" href="signup.php"> I would like to use some form of AJAX validation (to check if the user name has been taken, for example) before submitting the form. I had the following in mind: When the user cl...

How to hide qtip tooltip after some time has passed?

I'm using qtip ( http://craigsworks.com/projects/qtip/ ) to make tooltips. Now I need to show tooltips when button is pressed and hide tooltips for example when 3 seconds has passed. My current code is not working, tooltips will sometimes go away and sometimes stay... var self = $("#email"); self.qtip( { content: error, ...

jQuery DateTime picker and ASP.NET MVC

I'm currently using a jQuery Date Time picker to select a date time to be put in to a database. When using the date time picker, the result shows up properly in the text box it is bound to (IE 27/09/2009 16:00). However, the date time is not being passed to the MVC application properly, and is being received as 01/01/0001 00:00:01. The...

JQuery form gets submitted even validation is returning false

My below mentioned code still submits form on special character in name field. Validation works but If I submit repeatedly it breaks and submits the form with special chars in name. What could be the reason for this? $("#fee").submit(function(){ trimmedValue = $.trim($("#name").val()); $("#name").val(trimmedValue); typevalue =...

What would be the simplest way to implement Flexigrid with ASP.NET 3.5?

I've been trying to follow the top Google results for ASP.NET + Flexigrid for jQuery such as CodeProject's approach but they all seem kind of sophisticated, I'm rather looking for something way more basic in terms of simplicity, a kind of Hello World approach if you will. I'd be more than happy if you guys would like to share any resour...

Toggling a blog post loop excerpts with jQuery

I'd like to reveal only post titles on my blog posts loop, and when the title is clicked -- the excerpt will appear below. So far I got this: $("#postTitle").click(function () { $("#postExcerpt").toggle(); Which works one the first result only. This, however: $("#postTitle").click(function () { $("#postExcerpt").next().toggle(); ...

$('').switchClass throwing error in IE8 if the switched class contains color property

I've the following css classes .switch-format{ background-color: yellow; } .switch-format1{ background-color: blue; } .switch-format2{ color: red; } Using this classes I want to do some animation on the following div <div id="switch-class" class='switch-format' style="margin-top: 5px;"> Effects - Switch </div> Following i...

Random number after js file include

Hello, I have a problem with a page that includes two js files. In firebug it shows that every time the page loads those two files get included with the prefix ?_=someRandomNumber I don't know where that random number is generated from and I guess it is the reason the files are not being cached and are downloaded each time the page is ...

jQuery Validation - Using validation on click, not on submit

I'm using (or trying to) JQuery Validation with WebForms/html. I have, basically (simplifying the real html, showing only the elements): <input id="txtEmail"/> <input id="txtTicketID"/> <a id="create" href="#">Create a new ticket</a> <a id="find" href="#">Find this ticket</a> The javascript for validation/action is here: $(function(...

Jquery Slider and Toggle

I have a slide show located at staging.asla.org/sustainablesites/secondary.html that uses the easySlider plug-in plus also uses the jQuery Toggle function. Currently when you navigate through the slide show the description stays either shown or hidden. I would like for the navigation of the slide show to control the toggle function in ...