$('form[role=form]').delegate( "input[role=submit_button]", "click", function() {
alert( FORM.ID ); /// ????????????
});
IMPORTANT: without use closest() or parent() ... you know, when you write $('form[role=form]') here you have the element finded ... why to search it newly ???
...
I want to change the behaviour on a "a href" link but only on ones that have a custom made attribute called open
e.g.
<a href="#" action="open">Link 1</a>
<a href="http://www.google.co.uk/"></a>
I want to change only the behaviour of the first one. So I do a:
jQuery('a[action|=open]').live('click', function(evt) {
do ...
I'm trying to return a partial view in asp mvc2 rendered with spark.
The view contains some javascript.
Everything gets rendered but the script does not execute
here is the code
<table>
<tr>
<td>
!{Html.LabelFor(model => model.SourceId, new { @class = "label-inline", title = "Source d'ouvrage" })}
!{Html.DropDownList("SourceLi...
I want to compare 2 text values on a web page and highlight the differences. Can I do this client-side, preferably with jQuery or Prototype?
...
S/N Name Result Action
--------------------------------------
1 Mike Passed
2 Mark Failed
3 Mary Failed
Based on the table above, I need to:
Highlight result column in red where the result is Failed
Provide a "Retry" hyperlink in action column for those have failed....
Hello Everyone,
I am using Ruby on Rails and Jquery as my library and 2 plugins but this should be a fairly plugin independent question.
I am using the jquery.pageLess plugin which makes an ajax call to the pagination that is built in to rails in order to load new items onto the page when you scroll to the bottom (much like the new goo...
<div>
<div class="one">One</div>
<div class="two">Two</div>
<div class="three">Three</div>
<div class="four">Four</div>
<div class="five">Five</div>
</div>
I need to add a div between div Three and Four, but I can't use any sort of targeting on the parent div (only the divs inside it).
jQuery('.four').parent().prepend('<div ...
Hello,
in first ajax call server returns a json string that is converted to js array. I want to run an ajax call for each element of array.
For example, first ajax call returns semester 1,2,3,4. Now i want to retrieve subjects for semester 1 and show them in a table, then retrieve subjects of semester 2 and show all subjects in a table...
Hi everyone,
I want to include Jquery to our current automation project running Selenium RC ( written in java ).
So we can rely on that JS library for writing our java script code extending the current user-extension.js.
I have heard and searched the web and many say it can be done, by include the source in the user extension o even ...
i know there is probably a better way of doing this, i have tried many ways. i would normally do the .hide() or .show() but the css display switch has been working better on FF, not on IE. anyway here is my code
$(".VariationSelect option[value='21']").click(function () {
$("#21").css("display", "block");
});
$(".VariationSelect opt...
I have a g:textfield, and I want to write something and then show me all the options possible that start with the same letter. I understand that is called AutoComplete.
Maybe using jQuery or JavaScript??
Any ideas??
Thanks in advance!
...
Hi all, i'm looking for a jquery-based popup dialog box that we will use for :
displaying static content pages (terms of use, etc)
the contact us page (already uses the jquery form plugin for ajax submit)
displaying full-size for photo thumbnails.
can anybody recommend one that can fulfills all the above and that is rather lightweigh...
I have a table whose body I've made sortable using jQuery UI's Sortable function. Within this sortable table, I have a textarea which allows the user to enter comments about a given table entry.
<table id="status">
<thead>
<tr>
<th>Name</th>
<th>Comment</th>
</tr>
</thead>
<tbody>
<tr>
<td class="dragHandle">Jason</td>
<td><text...
I'm working on a tabbed UI using jQuery UI AJAX tabs. Some tabs (tabs which are read-only) need to refresh automatically whenever the user leaves and returns to them, while others (tabs which contain forms) should only load once and not refresh when returned to.
Is it possible to specify that a single tab should cache it's AJAX conte...
Hello All,
I need help with displaying images from a MySQL database.
What I have is a an Dynamic PHP/HTML table that has multiple pages with a pagination link.
The table layout is: Book Title, Author, Publisher, Category and image.
I can connect to database with connection script - working OK.
I can see all the information for the table ...
Hello,
I'm trying to do a dynamic template. I have links in sidebar and I want to load the content dynamically with .load() in jQuery.
I have the following jQuery code for that:
// Services AJAX page loader
jQuery('.sidenav a').click(function(){
$page_url = jQuery(this).attr('href');
// load page
jQuery('#content').fadeOut(200...
I have a single page website which has a fixed floating nav. I want to be able to highlight which section the user is on by adding a class of say "on" to the relevant navigation a tag.
This class will need to be removed when the user is no longer on that section and the new current section then needs to be reflected in the nav.
This ca...
Is this possible? I've tried visibility:hidden/visibility:visible and display:none/display:block on the classes to switch between, but both result in the element popping in at the end.
...
I'm trying to generate an Amazon ad that should look like this.
<script type="text/javascript"><!--
amazon_ad_tag = "xxxxxxx"; amazon_ad_width = "160"; amazon_ad_height = "600";//--></script>
<script type="text/javascript" src="http://www.assoc-amazon.com/s/ads.js"></script>
Below are parts of my script that should achieve th...
Hi All, I' using the jquery loading plugin :
http://plugins.jquery.com/project/loading
To display a "please wait..." message fixed at the top of the browser page when an ajax request is being processed. This message is fixed at the top (like the messages at the top of the stackoverflow site), so are there even if the window is scrolle...