Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div id="form-container">
- <div id="0" class="grupa">
- <span class="style1">
- Odaberite sliku
- </span>
- <div class="grupa">
- <label for="lista-slika" class="style1">Odaberite sliku:</label>
- <select class="lista-slika">
- <?php
- while($pic = mysql_fetch_assoc($raw)){
- echo '<option value="' . $pic['putanja'] . '">' . $pic['naziv'] . '</option>':
- }
- mysql_free_result($raw);
- ?>
- </select>
- <input type="button" value="Odaberi" onClick="promjenisliku(this.parentNode)" />
- <label for="pic_url">URL:</label>
- <input name="pic_url" /><br />
- </div>
- </div>
- </div>
- <script type="text/javascript">
- var fields = 0;
- function addInput() {
- if (fields < 10) {
- document.getElementById('form-container').appendChild(document.getElementById('0'));
- fields++;
- } else {
- document.getElementById('form_container').innerHTML += "<br />Only only 10 input fields allowed.";
- document.getElementById('add').disabled = true;
- }
- }
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement