[jQuery] Re: Custom Attributes with Integer values?

2009-05-14 Thread oly.yates
Not sure this is the "best" way but try this: $(this).siblings().each(function(){ if($(this).attr("amount") > remaining){ $(this).attr("disabled", true) } }); Hope this helps. On May 14, 5:31 am, Daniel Murker wrote: > Hello, > > I have a form containing a list of checkboxes each with an 'am

[jQuery] Re: JQuery beginner's question on slider values

2009-05-14 Thread oly.yates
What are you using to generate the slider? if your using jQueryUI try somthing like: $('.selector').slider({ change: function(event, ui) { $('#my_input').val(ui.value); } }); On May 14, 2:59 am, digitalaspect wrote: > I need to pass the value of a slider to a form.  I am trying to

[jQuery] Re: Clone html and change input value

2009-05-13 Thread oly.yates
Have you tried using the .attr() or .val() functions to modify the value of the cloned node? var node = $("some node").clone(true).val("some value"); var node = $("some node").clone(true).attr("some attr", "some value"); On 14 May, 00:13, rmfjcr wrote: > Hi everybody. > I've got a form where us

[jQuery] Re: New inserted tag won't work with selector

2009-05-13 Thread oly.yates
Try using $("p").after($(this).clone(true)); instead of $("p").after("Hello"); Documentation for the clone function can be found here: http://docs.jquery.com/Manipulation/clone#bool On 14 May, 08:14, cohq82 wrote: > Is anyone aware of this problem? For example, the code below simply > just ins