I have a column that contains address "line 2" type values. this column can contain values like #431, UNIT 203, and APT. C and of course it can contain blank (or empty string) values also. i need an answer to two questions:
How would you expect a mixed values like this to be sorted (i.e. blank or pound signs on top when ascending)?
...
The jquery popup I created using the jquery show function, fades away in few seconds which is not intended.
I want the popup to stay...
How can i tell jquery to do so?
heres is my code,
jQuery(document).ready(function(){
jQuery('#popuup_div.popup_msg').hide();
$(a.xyz).click(function(e)
{
var height = jQuery('#popuup_div').height();...
Hi,
I would like to have a drop down menu with jQuery show and hide the different divs (or textareas) below it. Here's my jQuerycode at the moment:
$(document).ready(function(){
$('#edit1').hide();
$('#edit2').hide();
$("#page_selection").change(function(){
$("#" + this.value).show().siblings().hide();
})...
There are many JavaScript, .htc, jQuery solution available to make round corner in IE 6,7,8.
http://www.dillerdesign.com/experiment/DD_roundies/ (It does not work in IE 8)
http://www.htmlremix.com/css/curved-corner-border-radius-cross-browser
http://alt-web.com/DEMOS/CSS-Rounded-Corners.shtml
http://blue-anvil.com/jquerycurvycorners/...
I want something like:
var user_name = $(".hidden_user_name").text();
$("a[name="+ user_name +"]").doStuff()...
This works:
$("a[name=joe123]").doStuff()...
EDIT:
The problem is clearly in that the user_name variable isn't set when the selector fires. How can I fix that?
...
I'm new to JQuery, appologies if this is a silly question.
When I use it find an element using the id, I know theres always one match and in order to access it I would use the index [0]. Is there a better way of doing this?
For e.g.
var gridHeader = $("#grid_GridHeader")[0];
...
In FF this hides all divs and then shows the id that was selected from the '#rule_rule_type' menu, which is the expected behavior. In IE 8 it does not hide all div id's:
<script type="text/javascript" charset="utf-8">
(function($){
$('#rule_rule_type').change(function() {
$('#allowed_senders, #blocked_senders, #blocked_char...
I am trying to create a dropdown menu. It working well. I want the top menu when hovered truns into white color. when moving down to the submenus, the top menu should stay in white color. But the top menu turns into its normal original color.
How to keep the parent menu hovered while moving mouse in the submenus.
The code is here:
HT...
I have created a facebook fan page here:
http://www.facebook.com/apps/application.php?id=120196931351044&v=app_120196931351044
It incorporates iframes to call certain pages/image galleries which use jquery. Everything works fine in all browsers except for Chrome. Nothing shows up in Chrome from the iframes, just empty white backgro...
Okay so on my homepage http://www.stat-me.com i have a link that when pressed activates some jquery.
I have css on it saying margin-bottom:517px; yet it does not affect it
It is the link with the text XXXXXXXXXXXX and if you go to the actual page you will see that it sticks to the bottom left corner under the transparent bar down th...
I have a javascript array containing the name and values of radios I want checked.
jQuery(window).load(function(){
var selected_options = new Array();
selected_options['swing_type'] = 'Slide';
var x;
for (x in selected_options){
jQuery("#menu input[name="+ x +"][value="+ selected_options[x] +"]").attr('checked', 'check...
On one of my pages I have a div that uses ajax to load content asyncrohnously.
When a session expires the user is supposed to be redirected back to the loggin screen. However, when the session expires and the ajax call is triggered the login page gets put inside the div. What I want is for the user to be redirected back to the login scre...
So I have some textboxes (in an UpdatePanel in a ModalPopup in a User Control) that look like this:
<asp:TextBox ID="exampleTextBox" runat="server" MaxLength="10"
CssClass="datepicker" ReadOnly=true
Text='<%# Bind("ExampleDateField") %>' Width="77px">
</asp:TextBox>
I also have some jQuery (imported from file on the Master p...
Hi guys! I'm working on a form for a client and he has given me the task to create a show/hide effect when certain checkbox in unselected. Please if you know the answer or any work around for this I would be deeply thankful. Thanks.
...
I am loading a jQuery qtip on hover (as it usually works). Inside this qtip, there is a textbox and a button. On the click of this button, I want to do something with the value of this textbox. Somehow, jQuery's .val() function returns me the initial value of the textbox. Where am I going wrong?
jQuery code:
$(function() {
$("#some...
Hello All - Out of curiousty which of the following code is more efficient (if neither, what would be the best way?)
Backstory - Building a small image carousel and the code in question has to do with the controls (prev, pause/play, next)
<ul class="controls">
<li> <a href="#" class="prev"> Previous Image </a> </li>
<li> <a h...
Let's say we have this form:
<form>
<input type="text" name="some_name" value="val" id="some_name">
<input type="image" value="action" alt="Add To Cart" name="add" src="/images/submit.gif">
<input type="image" value="action" alt="Shop some more" name="return" src="/continue_shopping.gif">
</form>
How do I find the input that sub...
Let me post the code first.
function alertCallback<?=$position_info['id']?>()
{
var id = <?=$position_info['id']?>;
var itemname= '<?=$na?>';
<?PHP if($position_info['name'] == $wposition){ ?>
var reward = '<?= $itmname ?>';
$('#selected_item').html(''+itemname+reward);
<?PHP item_add($_SESSION['use...
Yeah so I've been messing around with javascript a while but only recently got into stuff like object orientation, prototyping and using objects for all functions and vars.
But, many frameworks like jQuery or extJS have something I have yet to grasp, you can define an object by using a built in function for searching the dom, example:
...
I have two lists connected with jQuery UI's sortable, allowing to drag items from one list to another.
http://jsbin.com/uraga3
Is there a simple way to drag several items at the same time - e.g. to move items #3, #4 and #7 from left to right?
...