Bug Tracker

Ticket #3806: test.html

File test.html, 735 bytes (added by farmer, 11 years ago)
Line 
1<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
2
3<script type="text/javascript" charset="utf-8">
4$(document).ready(function(){
5        $('.lala').click(function(){
6                console.log($('#test_broken').attr('action'));
7                $('#test_broken').attr('action', 'bar');
8                console.log($('#test_broken').attr('action'));
9               
10                console.log($('#test_working').attr('action'));
11                $('#test_working').attr('action', 'bar');
12                console.log($('#test_working').attr('action'));
13        });
14})
15</script>
16
17<form action="foo" method="post" id="test_broken">
18        <input id="action" type="hidden">
19</form>
20
21<form action="foo" method="post" id="test_working">
22</form>
23
24<input type="button" class="lala" value=" Test 1 ">