I have an element that has two classes but can't seem to select it with jQuery.
Is it possible.
Here's the code:
<html>
<head runat="server">
<script type="text/javascript" src="abc/scripts/jquery-1.4.2.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
alert($(".x.y").html()); //sho...
Ok,
I'm trying to use jQuery $.post with the PasteBin API to create a PasteBin page and grab the URL (which the API says it returns). Here is my code so far:
$('#send_code').click(function(){
$.post('http://pastebin.com/api_public.php',
{ paste_name: $('#paste_name').val(), paste_code: $('#paste_code').val() },
...
Hi,
I am using JQuery UI tabs , to get the current selected tab i am using ui.index but i want an
index of last clicked tab.
for example,
initially tab 1 is loaded
after that if i click tab 3 then in show method i can fetch tab 1's index
and the same way if i click on tab 1 then i can fetch tab 3's index.
...
Hi,
I have this countdown script wrapped as an object located in a separate file
Then when I want to setup a counter, the timeout function in the countdown class can not find the object again that I have setup within the document ready.
I sort of get that everything that is setup in the document ready is convined to that scope,
howeve...
I'm working on a AJAX form which lives in a JQUERY UI Dialog. It works great in FireFox, but for some reason, in safari it refreshes the page to: /?
Please let me know if somethings wrong here? Thanks
<div class="modal-container">
<form onsubmit="" action="" id="list-dialog-form" name="list-dialog-form">
<div id="modal-wrap...
I don't know how to use Flexigrid jQuery in my website, please answer me sir.
...
This works fine in FireFox:
$("#listname").val().trim()
But in safari it errors: $("#listname").val().trim() while this does work, $("#listname").val()
Why is that?
...
I want to track when user clicks external links for analytics purposes. The simplest solution is to replace all external links with links to special record-and-redirect controller, but that would slow the user unnecessarily.
The second idea would be to override click event and within in $.post a message to record controller, then let th...
This is the same question as this:
http://stackoverflow.com/questions/2890620/jquery-running-a-function-in-a-context-and-adding-to-a-variable
But that question was poorly posed.
Trying again, I'm trying to do something like this:
I have a bunch of elements I want to grab data from, the data is in the form of classes of the element chi...
I was playing around with Symfony, jQuery, jqGrid & AJAX.
For each new post submission, I am doing the foll:
adding a routing entry in routing.yml
defining a new action in the Actions file for the module. THis reads params, assigns values & saves the object
As in the case of jqGrid, the 'Add Row' form is not a Symfony form. Is ther...
Is there any initialize event in Jquery UI Tabs , which executes only once when particular tab loads ?
As show function in Jquery UI tabs executes every time when tab gets load , i want an event that executes only once..
...
Hi, I want to send the username and password values which user types in html input elements to server to check if the username and password is valid or not when user click login button, using post request in $.ajax(options) method in jquery, but I don't know how to send those username and password to server. What option should I write in...
Forgive my ignorance as I am not as familiar with jquery. Is there an equivalent to dojo.connect() ?
I found this solution : http://think-robot.com/2009/06/hitch-object-oriented-event-handlers-with-jquery/
But there isn't disconnect feature !
Do you know other solution in jquery ? There are jquery.connect but this plugin not work in m...
I recently came across the includeMany jQuery plugin to include external JavaScript and CSS files into a page. Although it was released in early 2009 there are NO references in blogs or elsewhere. I wonder if it's usable? What is the experience using it?
...
I need to select elements based on values stored in an element's .data() object. At a minimum, I'd like to select top-level data properties using selectors, perhaps like this:
$('a').data("category","music");
$('a:data(category=music)');
Or perhaps the selector would be in regular attribute selector format:
$('a[category=music]');
...
Hello,
I have a strange problem.
while MicrosoftMvcValidation works in my mvc project, MicrosoftMvcJQueryValidation doesn't.
this is my code:
<script src="../../Scripts/MicrosoftMvcJQueryValidation.js" type="text/javascript"></script>
<script src="../../Scripts/MicrosoftMvcValidation.js" type="text/javascript"></script>
<% Html.En...
Hi there,
my rails applications (all 2.3.5) use a total mix of inline javascript, rjs, prototype and jquery. Let's call it learning or growing pains. Lately i have been more and more infatuated with unobtrusive javascript. It makes your html clean, in the same way css cleaned it up.
But most examples i have seen are small examples, an...
I need to do something only if all the li's in a given ul are hidden.. this doesn't seem to do the trick. is there a way?
if ($('#some_ul li:hidden')) {
// do something only if all 'li's in a given ul are hidden
}
...
I have this conventional submit button which submit a form like this:
<form method="post" id="form_submit">
...
<input class="button" type="submit" name="Submit" value="Submit">
</form>
And I check if the submit button is clicked using this:
if(isset($_POST['Submit'])){
//update DB
}
Now I have a submit link using jquery:
<a hr...
Below I have the code that allows me to edit a table row inline. However it edits ALL of the TDs within that row. My problem, along with the code, are stated below. Any help is appreciated.
<tbody>
<tr>
<th scope="row">Test</th>
<td class="amount">$124</td>
<td class="amount" id="" >$154</td>
<td ...