⬅︎ Back to Button tag in bloody Internet Explorer
<input type="hidden" name="actiontype" value="none" id="ietype"> <button type="submit" onclick="document.getElementById('ietype').value='preview';" name="preview">Preview</button> <button type="submit" onclick="document.getElementById('ietype').value='publish';" name="publish">Publish</button>this solves the problem as you create a hidden value which changes value depending on the button you clicked. Hope I helped!
kolibrizas,Works Great. I always adhere to the KISS philosophy and this is such a simple but effective method. Appreciate the post.
You are welcome :)Glad to have helped ;)
Comment
<input type="hidden" name="actiontype" value="none" id="ietype">
<button type="submit" onclick="document.getElementById('ietype').value='preview';" name="preview">Preview</button>
<button type="submit" onclick="document.getElementById('ietype').value='publish';" name="publish">Publish</button>
this solves the problem as you create a hidden value which changes value depending on the button you clicked. Hope I helped!
Replies
kolibrizas,
Works Great. I always adhere to the KISS philosophy and this is such a simple but effective method. Appreciate the post.
You are welcome :)
Glad to have helped ;)