[jQuery] Re: Copy content from one field to another

2009-10-20 Thread Ghprod
Hi ... if u work with newer version of jquery, maybe u'll change $ into jQuery :) Hope it helps :) regards

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread rupak mandal
Try this $(#billing_first_name1).attr(value,$(#shiping_first_name).val()) $(#billing_last_name1).attr(value,$(#shiping_last_name).val()) Thanks On Tue, Oct 20, 2009 at 8:55 AM, Ghprod greenhousep...@yahoo.co.id wrote: Hi ... if u work with newer version of jquery, maybe u'll change $

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread ReynierPM
Ghprod wrote: Hi ... if u work with newer version of jquery, maybe u'll change $ into jQuery :) With newer version you mean 1.3.2? Hope it helps :) regards -- Saludos ReynierPM

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread ReynierPM
rupak mandal wrote: Try this $(#billing_first_name1).attr(value,$(#shiping_first_name).val()) $(#billing_last_name1).attr(value,$(#shiping_last_name).val()) Maybe I'm doing something wrong because it not works. Check the code online at

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread rupak mandal
change the id of lastname of billing information to billing_last_name Thanks On Tue, Oct 20, 2009 at 5:44 PM, ReynierPM rper...@uci.cu wrote: rupak mandal wrote: Try this $(#billing_first_name1).attr(value,$(#shiping_first_name).val())

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread rupak mandal
sorry change the id of lastname of shiping information to shiping_first_name Thanks On Tue, Oct 20, 2009 at 6:04 PM, rupak mandal rupakn...@gmail.com wrote: change the id of lastname of billing information to billing_last_name Thanks On Tue, Oct 20, 2009 at 5:44 PM, ReynierPM

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread ReynierPM
rupak mandal wrote: change the id of lastname of billing information to billing_last_name Thanks a lot, that was the mistake. Now it works -- Saludos ReynierPM

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread ReynierPM
rupak mandal wrote: sorry change the id of lastname of shiping information to shiping_first_name I have another question related to this. How can I clear the fields if I uncheck the checkbox? I mean when marked fill fields as I do until now and when unmarked empty those fields? How can I

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread ReynierPM
ReynierPM wrote: rupak mandal wrote: I have another question related to this. How can I clear the fields if I uncheck the checkbox? I mean when marked fill fields as I do until now and when unmarked empty those fields? How can I check when the checkbox is checked or not? Cheers Reply by

[jQuery] Re: Copy content from one field to another

2009-10-20 Thread rupak mandal
function doCopy(){ if($('#same').is(':checked')) { $(#billing_first_name).attr(value, $('#shiping_first_name').val()); } else { $(#billing_first_name).attr(value,); } } I have another question related to this. How can I clear the fields if I

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Bi Jing
HTML code: input type=checkBox onclick=doCopy/Copy form id=user1 input type=text id=user1_name / input type=text id=user1_pass / /form form id=user2 input type=text id=user2_name / input type=text id=user2_pass / /form JS code: function doCopy(){ $(user2_name).val($(user1_name).val())

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread ReynierPM
Bi Jing wrote: HTML code: input type=checkBox onclick=doCopy/Copy form id=user1 input type=text id=user1_name / input type=text id=user1_pass / /form form id=user2 input type=text id=user2_name / input type=text id=user2_pass / /form JS code: function doCopy(){

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Charlie Griefer
On Mon, Oct 19, 2009 at 7:28 PM, ReynierPM rper...@uci.cu wrote: Isn't working. HTML Code: label for=same class=firstSame input type=checkbox name=same id=same onclick=doCopy //label label for=first_name class=firstFirst Name: input type=text name=first_name id=first_name value= size=

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread ReynierPM
Charlie Griefer wrote: Your selectors are incorrect. $('first_name1') looks for a first_name element in the DOM (there is none). You're referencing by ID, so you want to preface the ID with a # sign (similar to CSS). $('#first_name1').val($('#first_name').val()) Fixed and still without

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Bi Jing
Sorr, I made mistake, there are two wrong coding No.1, onclick=doCopy() No.2, $(#user2_name).val($(#user1_name).val()) $(#user2_pass).val($(#user1_pass).val()) On Tue, Oct 20, 2009 at 10:28 AM, ReynierPM rper...@uci.cu wrote: Bi Jing wrote: HTML code: input type=checkBox

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread ReynierPM
Bi Jing wrote: Sorr, I made mistake, there are two wrong coding No.1, onclick=doCopy() No.2, $(#user2_name).val($(#user1_name).val()) On Tue, Oct 20, 2009 at 10:28 AM, ReynierPM rper...@uci.cu wrote: Nothing still not working -- Saludos ReynierPM

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Bi Jing
Weird, Its working on my IE/FF BODY label for=same class=firstSame input type=checkbox name=same id=same onclick=doCopy() //label label for=first_name class=firstFirst Name: input type=text name=first_name id=first_name value= size= //label label for=first_name1Middle Name: input type=text

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread ReynierPM
Bi Jing wrote: Weird, Its working on my IE/FF I'm working with FF 3.5.3 also This is my JS code: script type=text/javascript $().ready(function() { $('.corner').corner(); $('#paypal_form').validate({ rules: { cc_number: { required: true,

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread Conrad Cheng
install firebug in your ff and you can see your js errors On Tue, Oct 20, 2009 at 11:05 AM, ReynierPM rper...@uci.cu wrote: Bi Jing wrote: Weird, Its working on my IE/FF I'm working with FF 3.5.3 also This is my JS code: script type=text/javascript $().ready(function() {

[jQuery] Re: Copy content from one field to another

2009-10-19 Thread ReynierPM
Conrad Cheng wrote: install firebug in your ff and you can see your js errors I have installed but can't find where to see errors -- Saludos ReynierPM