• Post Reply Bookmark Topic Watch Topic
  • New Topic

can we add or remove a form attribute by javascript ?

 
raminaa niilian
Ranch Hand
Posts: 551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi
thank you for reading my post
can we add or remove form attributes ( i mean for example things like password , username ,...) by using javascript ?

for example when i post my jsf form to a 3rd pary web page it adds some more parameters than what i need , 3rd party web page does not accept post with more/less than 3 parameters
so i need to remove those two parameters from the url in post method

i should say that i use javascript to assign action and and submit the form

thanks
 
vishwanath nadimpally
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this would serve any purpose for you but you can set the values of the unwanted parameters to empty strings. Like
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!