Jquery :: Or Mootols - Or Option 3?
May 31, 2009Which should I pick? Wihch do you like? Which has advantages over the others?
Or is there another framework wihch you like?
I see the sticky thread but it doesn't say which is the best.
Which should I pick? Wihch do you like? Which has advantages over the others?
Or is there another framework wihch you like?
I see the sticky thread but it doesn't say which is the best.
I am a student and am currently developing my first wordpress based website. I currently have two conflicting javascripts on my home page (splash.php). The first is a banner that uses mootools and the other is the bxslider jQuery script.
Code:
<head>
<script src="http://www.berryconcept.co.uk/sandbox/wp-content/themes/ForetrackWP/js/mootools.js" language="javascript"></script>
<script>
[Code]...
I have been trying for days to find the problem, but I'm not very knowledgeable of javascript.
I am searching a solution to change a ComboBox by popup I have found this script on the web. Is it also possible to select the newVendor just after adding? Is this script ok or are there better solutions?
<script type="text/javascript">
<!--
function message(value){
if(value=="newVendor"){// New Vendor is selected
var vendor = prompt("Vandor's Name","");
var elementSelect = document.getElementById('vendor');
try{
[Code]....
I'm using the following code to remove an option from a select control based on a selection in a different select control and the option text in the select option that is being removed. The code works as I want it to, but I would prefer to use the option value for identifying the option to remove instead of using the option text. I've tried several different ways to do this, but can not find the proper syntax.
[Code]...
I have a form that uses jeditable to edit-in-place several fields and select boxes. Everything is working great. Now I need to a way to add a new option to the select list. What I would like is the user select "Add New..." from the select list that would pop-up a dialog window where several fields are filled in. When the form is saved the select field is updated with the new ID and description. I use Facebox for pop-up windows to display notes when the user clicks on a topic. I know Facebox can be used to display a form. It would be ideal to use this ability when creating a new option for the select box.
View 1 Replies View RelatedI have an select option list, each option has a numerical id, value and text. Each option has an array of its own. So when I choose an option from this list, I want to insert the options array into another option list with an id, value and text. Whats the best way of doing this? How do I select an array based on the value or text of a select option? For for example, take a list of car makes. If I choose the make Audi, how do I select the array of Audi models and insert these models into another select option list. All makes and models have their own numerical id, value and text.
View 9 Replies View RelatedI wish to have options show or not show depending on the options selected previously. I think I would be right in saying this needs to be client side and think it must be javascript that is needed here. Either way what method should I use and what is the coding needed to do this.
<!DOCTYPE HTML PUBLIC "-W3CDTD HTML 4.01 TransitionalEN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head><body>
<form action="" method="get"> .....
I am currently looking to create a JavaScript menu for a website I am working on. It currently expands and collapses on click. The code in question is pasted below:-
menu_status = new Array();
function showHide(theid){
if (document.getElementById) {
var switch_id = document.getElementById(theid);
[Code]....
As you can see, it basically shows and hides the menu (when clicked). I want it to open the menu when clicked and close when another menu is opened. I have looked and have not been able to find a solution into it. Ideally I donot want it to be a long piece of code as I do have a working menu but with many more lines of JavaScript than the one I have posted.
The code below works perfect in Firefox, not in IE8.
<script language="javascript" type="text/javascript">
HTML:
I'm iterating through each option of a select, and I need to selectively remove some options based on their value. Here's a sample option (I don't control the markup)
<OPTION selected value=7>Compliance</OPTION>
$("select[title='MyTitle'] > OPTION").filter(function(){
var v=$(this).attr['value'];
//other stuff
[Code].....
The following code below doesn't seem to give the expected result:
$('#aUsers option:selected').each(function() {
console.log('user: ' + $(this).val());
});
It will display the empty string. -- View this message in context: [URL] Sent from the jQuery General Discussion mailing list archive at [URL]
if I have a menu, how to get the position of the option after I select one of it?
for example, if I choose b, and the position should b 2.
I have a select element as below
<select id="sel">
<option id="a">A</option>
<option id="b">B</option>
<option id="c">C</option>
</select>
I want to hide option A in some case and then show option A in the other case, so the code snippet as below// in some case $("option#a").hide(); The hide function works right in Firefox , but it can't work in IE6. Are there any other solution that I can hide option and show it in later for IE6 browser?
I have the following script running on http://todo.fastlions.nl/project?id=23. the trouble I have is that despite trying and trying I can't get at the text content of the newly selected option. It keeps on putting the entire web page's html in the new_assignee variable.
[Code]...
I've build a module in jQuery that converts a normal select box to a nice stylized list.When I click the anchor tag, it drops down the list with some JS. What I can't figure out is how to implement the keyboard. For example, if I wanted to drop down in the list, I could start typing.Could someone lead me in the right direction?I can't quite figure out what to google for.
View 2 Replies View RelatedI have2 select boxes with 2 options. If I change the first box I want to reset the second box.
I have tried on Change, setting thesecondselect box val but this does not work.
Here is my code.
If i change box 2 and then change box 1 it never resets box2 to 0...
how do I know count all option in select?
View 1 Replies View RelatedI am trying to make a form that collects "Number of Children" a parent has. If they select "4" from the select input, then I want to slidetoggle out the appropriate divs, one for each child.
[Code]...
I have been able to use slidetoggle in the past when attached to a button, but this one has me lost. Anyone know how to accomplish this?
i have listbox that when a user selects option(s) I want to see if the "--ALL--" option text is selected and then do something.. basically
for each selectedoption.text that contains "--ALL"
$('#lstBusinessUnitSource option[value*="' + $(this).val() + '"]').remove();
here is my code..
$(
"lstDivisionSource option:selected").each(function () {
alert($(
[code]....
When using jQuery Cycle as a text scroller, because IE7/8 render text ugly when fading in and out, it's better to make text has no transition effect on IE7/8.
Instead of the following long-winded code, can we re-write one option value (ex: speed) only for IE7/8 after the text scroller has been launched?
if ($.browser.msie && $.browser.version.substring(0, 1) < 9) {
$('#textscroller').cycle({
speed: 0
,
[Code]....
There appears to be no difference between these two when the page loads.
<select id="one">
If there is no "selected" then it always defaults to first value.
How can I tell if the page has loaded and no options have been selected?
How can i check in a poll which radio button was selected?
View 2 Replies View RelatedI am using jQuery next() and prev() to navigate inside <select><option> tags. problem is I am using <optgroup> too and can't find a way to make it work
[Code]...
This might have been resolved, but I can't find a solution with mysearch. I'm trying to add a class with the text of the option. Simpleto do the selected option, but not all of them it seems.I want to change:
<select class="required" id="custom1" name="custom1">
<option selected="" value=""/>
<option value="1">Text 1</option>
[code]....
I am using table filter.[url]...
i want to disable the Menu option...how to do this.
I have an html drop down list. the list has an 'other' option. when the other option is selected I want a text box to pop up to the left of it for entry. I was thinking about using a hidden <div> to contain the text box. and when other is selected to unhide it. How do I unhide it when other is selected?
View 1 Replies View Related