0

I would like to transform this:

<input value="Étape 1/2" name="submitForm" type="submit" class="submit">

to this:

<input value="Étape suivante" name="submitForm" type="submit" class="btn btn-large btn-primary formdevis">
1

1 Answer 1

1

Try this: https://jsfiddle.net/KlaussU/eh4wabj7/1/

<button onclick="change();">Change</button>
<input value="Étape 1/2" name="submitForm" type="submit" class="submit">
<script>
  function change() {
    $(".submit").attr("value", "Étape suivante");
    $(".submit").addClass("btn btn-large btn-primary formdevis");
      $(".submit").removeClass("submit");
  }
</script>
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.