Home › Forums › CSS › iOS / iPhone/ iPad / Mobile Safari = Input Buttons (submit) Forced padding › Re: iOS / iPhone/ iPad / Mobile Safari = Input Buttons (submit) Forced padding
November 22, 2010 at 4:20 pm
#72683
Member
I’ve been messing with this now for a bit. My suggestion: Make it a Div instead of a button.
Submit
and style it with CSS and make it function with jQuery… maybe even give it something like:
Submit
Submit
jQuery / Javascript
$('div.clickButton').click(function(){
rel = $(this).attr('rel');
if(rel == 'submit'){
$('form').submit();
}
if(rel != 'submit'){
window.location =rel;
}
});
You could even do this in CSS to make it look like a link:
div.clickButton {cursor:pointer;}