I have a menu div to put the menu list inside
<!--menu-->
<a href="#"><div id="menu-tab">Menu</div></a>
<div id="menu">
<ul>
<li><a href="#">a</a></li>
<li><a href="#">b</a></li>
<li><a href="#">c</li>
</ul>
</div>
for the css
#menu {
width: 220px;
border: 2px solid #004990;
float: right;
margin-right: 15px;
margin-t...
Hi,
How to change the options in a Dropdown box using JQuery.
For Eg.
1. <select name="fieldSize" id="fieldSize">
<option>Choose a size </option>
<option value="small">Small</option>
<option value="medium">Medium</option>
<option value="large">Large</option>
</select>
I want to change the options as
2. <select id="fieldSize" na...
Hi, I wrote a code to show a div element(shareform) when a link is clicked and to hide it when the link is clicked again. I have many Forms under which this link 'Share' will be displayed. If i have only one Form, this code works fine. That is, initially the 'shareform' element is hidden and when I click the link, it is shown and when I ...
Which is the best jQuery rich editor? Any recommendation?
...
I am using jQuery to dynamically (I mean at runtime) add a span element to my page's DOM:
// create add task button
$(document.createElement("span"))
.attr({ id: activityNameHyphened + "-NewButton", name: activityNameHyphened + "-NewButton" })
.addClass("smallButton")
.appendTo(cell1)
.click(CreateTaskRow(ActivityName));...
Hi there
I'm curious about how www.cakephp.org menu has made. I'm talking about: "Get It Now/Hot Features/Learn/Interact/Features"
Do you have any idea?
...
I use the following to load a new page within the current page, no refresh.
$(document).ready(function(){
$("#leftnav").click(function(){
$.post("regions.php",function(data){document.write(data)},"html")
return false;
});
});
Is it possible to animate the new page with jquery, like slide up the new page?
Thanks,
...
Why it is converting to lowercase?
In Firefox it goes as: "X-Requested-With".
While in IE, it goes as: "x-requested-with"
...
Hi,
I am having a Html LInk created using
<?php
echo $html->link(
'Save Form',
array('action'=>'/homepage', $userid),
array('class'=>'button','id'=>'saveForm'),
'really save the Form ?',
false
);
?>
And i want this link to append it to #save using JQuery
How could i append this Link to ...
Hello,
I'm using the following bit of script to load another one:
$.getScript("CAGScript.js", function () {
try {
CAGinit();
} catch(err) {
console.log(err);
}
});
The idea is that $.getScript loads the script, then executes the callback when it's done. CAGInit() is a function that lives in CAGScript.js.
...
Hi,
I'm looking for some sort of TimeRange widget in Javascript/CSS/jQuery. I'm not looking for a time/date picker, which are widely available.
I need it for a website to allow businesses to select their openinghours by clicking and hovering over the hours they're open.
+-----------------------------+
| 0h 0h15m 0h30m ... 23:45 |
...
Given the following form:
<form>
<input name="foo" value="bar">
<input name="hello" value="hello world">
</form>
I can use the $.param( .. ) to serialize the form
$.param( $('form input') )
=> foo=bar&hello=hello+world
How can I deserialize the above String with javascript and get a Hash back? e.g.
$.magicFunction("foo=bar&...
Ok, this should be easy for the right person: Is it possible to edit the revert position of a jQuery UI draggables helper? For example, I have icons the user can click and drag into groups on the page. When the user clicks an icon and starts dragging, a helper message appears right under their cursor and follows the cursor so long as the...
I am doing slideToggle as follows:
$(document).ready(function(){
$("#show_morecats").click(function(){
$("#morecats").slideToggle("slow");
$("#show_morecats").css("background-color","#399C05");
});
});
HTML
<a href="#" id="show_morecats">More</a>
<div id="morecats" style="display:none;">Some text</div>
Now...
I'm getting an annoying "flickering" effect in Firefox when using jQuery "show" and "hide" on some div's. Any idea when this could be happening?
...
Here is the link:
http://pangeaadvisors.org/projects.asp
2009 Projects position in the center as I want them to be. But click on 2007 projects. When clicked, overlay positioned on the right side and without the background.
...
I have the following multi-select box in a HTML form, where user can select one or more option.
<select id="eng_0" name="eng_0[]" multiple size="3">
<option value="Privilégier">Privilégier</option>
<option value="Accepté">Accepté</option>
<option value="Temporaire">Temporaire</option>
</select>
When the user selects no option, t...
Rather than write my own validation I thought i would use JQuery instead however i'm not finding this easy either. I have a few questions which I hope someone can answer. Firstly, the error messages are only appearing when I click submit. How can I get them to appear after exiting each field? Here's my code for validation.
Code:
$(docu...
Hi all,
If I am selecting as follows:
$('li',"#container").draggable({
/* blah */
});
How do I get the individual class attributes for those elements selected so that I can something along the lines of
$('li',"#container").draggable({
/* blah */
}).attr("name", "insert name of individual img");
The markup is as ...
Hi all,
Here's the situation.
function scrollLog(line) { // Assume Firefox
// alert("weird");
frames['log'].find(line);
};
Here's a function I call when the document is ready. The code as written does not always fire . However, uncomment the alert line, and after the alert is fired, the find function always fires. Any i...