you could also completely remove the field from the DOM
(#myfield).remove();
On Wed, Jun 3, 2009 at 7:40 AM, mkmanning michaell...@gmail.com wrote:
To set the value of a form field, use this:
$(#myFieldId).val()
To do this without setting the field to an empty value, modify your
original
It's working like a charm now. I used mkmanning's way.
Thanks for those who helped me!
Clare
$(#myfieldid).attr({
value:;
});
this should set the value to nothing.
On Tue, Jun 2, 2009 at 7:24 AM, Clare little.miss.miracle.g...@gmail.comwrote:
I have email, password and some other fields, and I'm using $.post to
send data for Ajax submission.
$(#MyForm).submit(function(){
SORRY
SYNTAX ERROR
here is the correct
$(#myfieldid).attr({
value:
});
On Tue, Jun 2, 2009 at 6:11 PM, waseem sabjee waseemsab...@gmail.comwrote:
$(#myfieldid).attr({
value:;
});
this should set the value to nothing.
On Tue, Jun 2, 2009 at 7:24 AM, Clare
Try to disable the field.
I think its gonna work.
2009/6/2 waseem sabjee waseemsab...@gmail.com
SORRY
SYNTAX ERROR
here is the correct
$(#myfieldid).attr({
value:
});
On Tue, Jun 2, 2009 at 6:11 PM, waseem sabjee waseemsab...@gmail.comwrote:
$(#myfieldid).attr({
value:;
});
this
I tried disabing the field, but unfortunately no respose from the
server in ajax call.
$(#myFieldId).attr({value:}) works fine.
Is there any way to do this without resetting the field value?
To set the value of a form field, use this:
$(#myFieldId).val()
To do this without setting the field to an empty value, modify your
original approach:
$(#MyForm).submit(function(){
var params = $(this).serializeArray();
$.post('/register.php',
7 matches
Mail list logo