hej
1. det hedder javascript og ik java..
2. prøv noget iden her stil:
- <script>
- function changeInputType(oldObject, oType) {
- var newObject = document.createElement('input');
- newObject.type = oType;
- if(oldObject.size) newObject.size = oldObject.size;
- if(oldObject.value) newObject.value = oldObject.value;
- if(oldObject.name) newObject.name = oldObject.name;
- if(oldObject.id) newObject.id = oldObject.id;
- if(oldObject.className) newObject.className = oldObject.className;
- oldObject.parentNode.replaceChild(newObject,oldObject);
- return newObject;
- }
- //taget fra: http://www.universalwebservices.net/web-programming-resources/javascript/change-input-element-type-using-javascript
-
- changeInputType(document.getElementByClass('BuyButton_ProductList'), "hidden"); //ikke testet..
- </script>
ellers kan du ik bare bruge:
<input type="hidden" name="test" value="1" />