SharePoint 2010 not accepting "value" attribute in input tag...any alternative?

446 Views Asked by At

I am using Content Editor WebPart in SP 2010 to create a simple button control, using the following code:

<input type="button" class="button" id="btn1" onclick="replyclick('view');change(this);" value="+" /><label for="+"><u> Definition</u></label><br />

However on saving, the "value" tag vanishes just like that! Leaving behind a blank looking button.

Also, the function I am using here is a javascript and the button functions perfectly...

I am not sure if there is any other alternative to "value" to name my button?

1

There are 1 best solutions below

0
Nurkartiko On

I try it on my SharePoint 2010 development environment, and it works fine. Double check your JavaScript.