What does /.*=/ mean in jquery/javascript?
What does /.*=/ mean in the following jquery? var id=this.href.replace(/.*=/,''); this.id='delete_link_'+id; ...
What does /.*=/ mean in the following jquery? var id=this.href.replace(/.*=/,''); this.id='delete_link_'+id; ...
I've looked through the other related posts to my question already over the past hour or so and tried out various fixes for them, but it still doesn't work, so here it goes: I have a website, located at www.rooms101.com my client wants me to add a page-peel effect, so I am using an example from http://www.sohtanaka.com/web-design/simple...
I have the following url. http://127.0.0.1/ci/index.php/admin/menus/edit/24 I want to get 24 from this to use in jquery/javascript. Something like this. var id=this.href.replace(/.*=/,''); this.id='delete_link_'+id; Could anyone tell me how to code this? ...
if i m new to jquery? then what is the best way to begin with? ...
Hi All, This is a similar question to this one: http://stackoverflow.com/questions/713884/convert-js-array-to-json-object-for-use-with-jquery-ajax Except that I have an object that has several arrays in it. Object looks like (simulated): {"Users":[1,2,3,4], "Clients":[5,6,7,8], "CompletionStatus":"pastdue", "DateRange":"thisweek"} ...
Hello, I have some code that if Javascript is available, it will remove a GIF image and replace it with a PNG image. The PNG is display:none and the GIF is visible. Since IE6- browsers can't load PNG, I have loaded the jquery PNG fix. But it only seems to work if the image is already visible. The other issue is I am trying to get th...
I'm not sure if this has already been answered, but here goes I have 4 tabs, two of which I load through controller calls; the remainder I'd like to vary the hrefs of and load automatically/on demand. My problem is that even assigning a fixed href like "www.google.com" is not doing the job of displaying the remote page; and the two tab...
I have several php pages that have forms used to submit data. My typical setup is to have the page post to itself so that I can validate the input and if necessary reload the page with the user submitted data (and markup to show where the error is). If everything is OK I redirect to a thank you page. I would like to start using ajax (j...
How do I use jquery to scroll right down to the bottom of an iframe or page? ...
Given the following structure, can the div which contains the sortable list be sorted? I ask because with the latest jquery 1.3 version it won't allow sorting of the divs. Is there any limitation with jQuery where it can't sort parent elements which contain an already sortable list, or is it because the parent is a div and not an LI elem...
Facebook's status update input (well, contenteditable div) detects links. When typing a link it waits until the spacebar is pressed before fetching the URL. When pasting a link it fetches the URL instantly. I can already parse the url after the spacebar is pressed...but I'm not sure about detecting when content is pasted. Any solutio...
I have a quite easy jquery question that I can't get right, when clicking on a link I need to insert some text in the right p (the table row before). This is the html: <table> <tr> <td> <p class='MyClass'>NOT HERE</p> </td> </tr> <tr> <td> <p class='MyClass'>NOT HERE</p> </td> </tr> . . //Many table ro...
function areaMe(area){ var barea = $('#barea').val(); if(barea.indexOf(area)!=-1){ barea=barea.replace(area, ""); // remove }else{ barea+=area; // inlcui } $('#barea').val(barea); } It doesn't work if the #barea input is hidden... ...
I'm trying to display the "right" value of a div named "slider", displaying it inside of "span.display_value" var rightStyleValue = $('div.slider').css('right'); alert(rightStyleValue); $('.display_value').html(rightStyleValue); UPDATE: Html is posted below. I'm using a drag and drop script to drag a div called "slider" that...
hi there, is there a way to replace following CSS with jQuery? .quote-body .quote-body { background: #f5f5f5 } .quote-body .quote-body .quote-body { background: #fff } .quote-body .quote-body .quote-body .quote-body { background: #f5f5f5 } .quote-body .quote-body .quote-body .quote-body .quote-body { background: #fff } ... and so on ...
<table class="checkout itemsOverview"> <tr class="item"> <td>GR-10 Senderos</td> <td><span class="value">15.00</span> €</td> <td><input type="text" value="1" maxlength="2" class="quantity" /></td> </tr> <tr class="item"> <td>GR-10 Senderos<br/>GR-66 Camino de la Hermandad<br/>GR 88 Senderos del...
hi there, how can i get cursor position in a textarea using jQuery? thanks ...
Looking for a date and datetime picker that will integrate fairly seamlessly with Rails. I'm sure some people must be using something similar. I have tried the unobtrusive date picker plugin but it breaks with the latest release of Rails. calendar date select plugin uses prototype which I have removed from my app and don't want to ad...
I am using the jCarousel plugin from http://sorgalla.com/jcarousel/ I have the carousel automatically scrolling through the images. I want to drop the little pause before each scroll animation - can anybody give me an idea where or how to get rid of that in the plugin ALTERNATIVELY Is there maybe a better plugin to do a continuing flo...
I have some jQuery code that copies the selected values from one listbox to another: $(adPerson + " option:selected").each(function(){ $(toNames).append($(this).clone()); }); I'm trying to make sure no blank lines are added to the destination listbox, so I tried this: $(adPerson + " option:selected").each(function(){ if...