This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Agile forum!
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic