|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
JavaScript - Single Quotes
I'm having with single quotes in JavaScript. I have a table and i want to add a row and keep the onchange event handler, however, the line appears as:
onchange='column_totals('table_test', total, used)' I cant get this function called and the problem I think is having single quotes with single quotes. anybody know how i would write this so JavaScript knows that the single quotes all work? |
|
#2
|
|||
|
|||
|
RE: JavaScript - Single Quotes
stripslashes()
|
|
#3
|
|||
|
|||
|
RE: JavaScript - Single Quotes
actually, it should look like this:
onchange="column_totals('table_test', total, used)" So if I echo that in PHP, it will end up like this: |
![]() |
| Viewing: Codewalkers Forums > Other Technologies > Client Side Things > JavaScript - Single Quotes |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|