[jQuery] Re: How to deterine number of words in a string?

2009-07-27 Thread ButtersRugby
I agree Liam. If you are doing a letter count then spaces punctuation etc all count towards your supposed limit. Word Counts are typically useless. :| On Jul 27, 3:09 pm, Liam Byrne wrote: > A letter count is FAR easier - just get the string's length. > > L > > Rick Faircloth wrote: > > Is it as

[jQuery] Re: Selecting the values of radio buttons

2009-07-27 Thread ButtersRugby
var group1 = $('input[name=group1]:checked').attr("value"); var group2 = $('input[name=group2]:checked').attr("value"); var group3 = $('input[name=group3]:checked').attr("value"); This will grab the value of the selected radio button within each of your groups. Then do some math to add up you

[jQuery] Correctly submitting form using Validation Plugin

2009-07-15 Thread ButtersRugby
My main issue is the submitHandler portion. I want to reset the form on submission, or be able to call the form reset as needed. As it stands now, the form works sending and recieving as needed. I just need to reset the form correctly, hopefully using the built in reset. // validate signup form

[jQuery] Re: Validate - How do I $.ajax without using the form plugin?

2009-07-14 Thread ButtersRugby
I figured out how to do it. Wasn't too hard. However, your solution is quite clean as well. Not sure which is better or what pitfalls there are to doing it my way vs. yours. submitHandler: function(form){ $('#submitSuggest').click(function

[jQuery] Validate - How do I $.ajax without using the form plugin?

2009-07-14 Thread ButtersRugby
I am trying to figure out how to submit the form using the $.ajax call. How do I make sure my form is valid when submitting via a click event on a button? do i put it in the submitHandler of the validation plugin? submitHandler: function(form) { $('mybutton').click(function () { $.aja

[jQuery] Re: Rollover Effects instead of alternate images

2009-05-22 Thread ButtersRugby
I just did this the other day on a web page. You need to make an image that has both the active, and regular state images in it. Then in your css, #base-state {background-position: 0px 0px;} // The first 0 is the X axis position, the second is the Y #base-state.active {background-position: 0px

[jQuery] Implementing Thickbox within ajax style Jquery-ui-tabs

2009-04-23 Thread ButtersRugby
Hey guys! I have some ajax tabs using the jquery-ui-tabs features. Within these tabs are tables with links. There are name links I am trying to load with an ajax style thickbox modal window. Then linked within tabs, the thickbox will not initialize. When a static page with no tabs, the same code

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread ButtersRugby
I ended up with this.. $(function() { $("#stateHolder > div").hide(); $("#stateList").change( function(){ var $el= $('#' + $(this).val() ); if ( $("#stateHolder > div:visible").length == 0) { $el.show

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread ButtersRugby
I have been trying to figure it out in Jquery, despite being new and quite un-experienced with Javascript. Here are a few bits of what i have so far. I know that i need to hide all of the child divs (the ones that will show and hide) on load.. Then as for my event...I need to grab the value out o

[jQuery] Re: Show a Div based on a Dropdown selection

2008-09-19 Thread ButtersRugby
I got it to work. $(function() { $("#stateHolder > div").hide(); $("#stateList").change( function(){ $("#" + $ (this).val() ).show() } ); }); Now I need to figure out how to hide the other divs before loading the new one. Is there anyone who can help

[jQuery] Show a Div based on a Dropdown selection

2008-09-18 Thread ButtersRugby
So I have a dropdown with the 50 states in it. I want to show a div based on the selection. I understand pieces of what to do but not sure how to put it together. Alabama Alaska etc.. This is Alabama