Bug Tracker

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#13640 closed bug (notabug)

can someone tell me why?

Reported by: wushengping2011 Owned by:
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

<!DOCTYPE html> <html> <head>

<script src="jquery-1.8.0.min.js"></script>

</head> <body> <form> </form> <script>

$('form').append("<input type='button' id='Add2' class='mainbutton' value='button' style='width: 120px;' onclick=docUpload('doc',{a:'a',b:'b',c:' c'})>") var test = $('#Add2').attr('onclick'); alert(test);

</script> </body> </html>

what i want:

docUpload('doc',{a:'a',b:'b',c:' c'})

but ....it gives me like this:

docUpload('doc',{a:'a',b:'b',c:'

what can i do?

Change History (3)

comment:1 in reply to:  description Changed 7 years ago by wushengping2011

Replying to wushengping2011:

<!DOCTYPE html> <html> <head>

<script src="jquery.js"></script>

</head> <body> <form> </form> <script>

$('form').append("<input type='button' id='Add2' class='mainbutton' value='button' style='width: 120px;' onclick=docUpload('doc',{a:'a',b:'b',c:' c'})>") var test = $('#Add2').attr('onclick'); alert(test);

</script> </body> </html>

what i want:

docUpload('doc',{a:'a',b:'b',c:' c'})

but ....it gives me like this:

docUpload('doc',{a:'a',b:'b',c:'

what can i do?

comment:2 Changed 7 years ago by scottgonzalez

Resolution: notabug
Status: newclosed

You can ask on a forum or Stack Overflow.

comment:3 in reply to:  2 Changed 7 years ago by wushengping2011

Replying to scott.gonzalez:

You can ask on a forum or Stack Overflow.

how can i solve it?

Note: See TracTickets for help on using tickets.