I have TONS of XML Parsing Error: EntityRef: expecting ';' errors on my page only because of the incorrect use ampersands in links by the developer.
Instead of asking him to use & instead of &, how can I replace those after page load using jQuery?
Edit: Ah right, validators read the source so it won't work. Is there any other way ...
Hello,
I am trying to delete directories using jquery, it does delete and stays on the 1a.php, which executes the code for the delete. What I exactly want is a delete of directory without page refresh, and display a message the directory has been deleted.
Please let me know what I am doing wrong here.
Thanks in advance
Dave
Please f...
I have:
<input type="text" value="Raphaël\nkicks\nbutt!" id="tzbox_txt">
var inputText = $("#tzbox_txt").val();
var stringText = "Raphaël\nkicks\nbutt!"
inputText === stringText - false!
If I use $(input).val() I get "Raphaël\nkicks\nbutt!" where \n is not being interpreted as line breaks.
And if I do var text = "Raphaël\nkicks\nbut...
Hi,
I wish to center a ul in a div that is the left column of a liquid layout. To do so I need to set the width of a div that I've used to wrap the ul. Note: the list items (and content) are retrieved from a database using php.
I'm interested in your suggestions on how to do this using jquery.
Consider the below markup:
<div id="wrap...
I'm currently using a small jquery script to rotate through background images on a portfolio site I''m creating for a friend's portfolio site here's the code:
counter = 1;
num_images = 9;
dir = "IMAGE DIRECTORY URL";
function rotateHeader() {
var background_img = 'url(' + dir + '/image' + counter + '.gif)';
jQuery('...
could someone help me to select last sibling of clicked element in jquery?
...
Here is my DOM:
<div class="group">
<div class="comment">
<button class="addLink">Add link</button>
</div>
<div class="link">
<button class="removeLink">Remove link</button>
</div>
</div>
I wanna click on the button.addLink and it will copy the div.link and append it as ...
when i use append it add an element WITHIN an element. i want to add an element AFTER an element.
eg.
<div class="link">
<input class="link" type="text" value="Skriv länk" />
<br />
</div>
how do i add an element after 'input' but before 'br'?
...
i want to put some description text in light grey in a text field. then when a user clicks on it the text disappears and he can type whatever he wants.
is there a jquery plugin for this? i dont know what to search for in google.
...
hello, I'm trying to append a select option list to a div table with jQuery, after done this, I'd like to select a specific option of the list, I'm trying something like this:
// my hidden option list
<div style="display:none;">
<select class="option_list">
<option value="male">Male</option>
<option value="female">Female</option...
is there a watermark jquery plugin that dont delete the watermark text when the text is in focus but deletes the watermark text first when the user is typing something in it?
then the watermark will still be visible when the first text field is automatically selected.
...
hey mates . recently i used jquery auto-complete tag
http://devthought.com/projects/jquery/textboxlist/
everything goes fine except utf-8 tag suggesting , only English tags are suggested
i guess something goes wrong with script lines
it works fine with English tags but not with multi byte languages like Persian
...
when you click on 'Ask question' here in Stackoverflow you see a text "What's your programming question? Be descriptive."
i want the same thing and all i need for that is to move my cursor to the beginning of the text field. how do i do that with jquery?
...
Hello,
anyone knows of any jquery plugin that handles duplication of some random html elements? I'm looking for a way to dynamically add identical rows to a form.
I know its not hard to make, but i don't really want to reinvent the wheel here.
...
I'm using jQuery to created a linked TOC that appears in a dialog box. The function I wrote to do so finds all the h4's in the page and
gives them ids to link to
adds some numbering display info
clones them
turns the clones into lis
wraps the inner text in anchor tags
finds the anchors adds a click function to the anchors to close...
We have a link:
<a href="#">
Some text
<span style="width: 50px; height: 50px; background: url(image.png); overflow: hidden; opacity: 0;"></span>
</a>
And we want to change opacity of <span> with some animation, when the link is hovered.
How would we do it?
...
I have a page that I screen scraped, the scraped page used a relative path for their images and when I load my page, the url of my site is being inserted on the src attr. I need to find some way of replacing my url with the url of the remote site in order for the images and other items that reference it to show up properly on my page.
...
$('#form').submit(function(event) {
});
When user submits the form by click <input type="submit" />,it should be <input type="submit" />,
when user submits the form by pressing Enter in a <input />,it should be that <input />
I tried event.target,but it's wrong.
...
Is there an equivalent to the Rails/Prototype observe_field method using jQuery without jRails?
I am doing a search-as-you-type with will_paginate:
<%= observe_field('search',
:frequency => 2,
:update => 'results',
:loading => "Element.show('spinner')",
:comple...
Hello y'all.
I'm a bit miffed. Actually, a bit more than that, but never mind.
The problem revolves around a jQuery gallery called 'Galleria'. You may have heard of it. It's quite aesthetically pleasing and since my client is a Photographer, I thought I'd display all of his images in a Galleria gallery.
You can see the site, in it's t...